/* Workers Dashboard Enhanced Styles */
/* All selectors are scoped to .workers-dashboard to avoid affecting other screens */

.workers-dashboard .summary-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
}

.workers-dashboard .enhanced-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    min-width: 0;
    flex: 1;
}

.workers-dashboard .enhanced-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.workers-dashboard .enhanced-card-primary {
    border-top: 4px solid #337ab7;
}

.workers-dashboard .enhanced-card-success {
    border-top: 4px solid #5cb85c;
}

.workers-dashboard .enhanced-card-info {
    border-top: 4px solid #5bc0de;
}

.workers-dashboard .enhanced-card-warning {
    border-top: 4px solid #f0ad4e;
}

.workers-dashboard .card-header {
    padding: 15px 20px 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workers-dashboard .card-title {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
}

.workers-dashboard .card-title i {
    margin-left: 8px;
    font-size: 1em;
}

.workers-dashboard .card-progress-circle {
    width: 50px;
    height: 50px;
    position: relative;
    flex-shrink: 0;
    margin-right: 10px;
}

/* Simple Progress Ring */
.workers-dashboard .simple-progress-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workers-dashboard .ring-background {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #e9ecef;
    box-sizing: border-box;
}

.workers-dashboard .ring-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: #337ab7;
    box-sizing: border-box;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.workers-dashboard .simple-progress-ring.ring-primary .ring-fill {
    border-top-color: #337ab7;
}

.workers-dashboard .simple-progress-ring.ring-info .ring-fill {
    border-top-color: #5bc0de;
}

.workers-dashboard .simple-progress-ring.ring-warning .ring-fill {
    border-top-color: #f0ad4e;
}

.workers-dashboard .simple-progress-ring.ring-success .ring-fill {
    border-top-color: #5cb85c;
}

.workers-dashboard .simple-progress-ring.ring-danger .ring-fill {
    border-top-color: #d9534f;
}

.workers-dashboard .ring-text {
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 0.85em;
    color: #2c3e50;
}

.workers-dashboard .card-body {
    padding: 15px 20px;
}

/* Enhanced Stats Grid */
.workers-dashboard .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workers-dashboard .stats-main-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.workers-dashboard .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.workers-dashboard .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.workers-dashboard .stat-item.stat-primary {
    border-right-color: #337ab7;
}

.workers-dashboard .stat-item.stat-success {
    border-right-color: #5cb85c;
}

.workers-dashboard .stat-item.stat-warning {
    border-right-color: #f0ad4e;
}

.workers-dashboard .stat-item.stat-info {
    border-right-color: #5bc0de;
}

.workers-dashboard .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
}

.workers-dashboard .stat-primary .stat-icon {
    background: linear-gradient(135deg, #337ab7, #5a9bd4);
    color: white;
}

.workers-dashboard .stat-success .stat-icon {
    background: linear-gradient(135deg, #5cb85c, #7bc97b);
    color: white;
}

.workers-dashboard .stat-warning .stat-icon {
    background: linear-gradient(135deg, #f0ad4e, #f7c371);
    color: white;
}

.workers-dashboard .stat-info .stat-icon {
    background: linear-gradient(135deg, #5bc0de, #7dd3f0);
    color: white;
}

.workers-dashboard .stat-content {
    flex: 1;
    min-width: 0;
}

.workers-dashboard .stat-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 3px;
    line-height: 1.1;
}

.workers-dashboard .stat-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 2px;
}

.workers-dashboard .stat-subtitle {
    font-size: 0.75em;
    color: #9ca3af;
    font-style: italic;
}

/* Secondary Stats Row */
.workers-dashboard .stats-secondary-row {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.workers-dashboard .mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    text-align: center;
}

.workers-dashboard .mini-stat-icon {
    font-size: 1.1em;
    color: #6c757d;
    margin-bottom: 3px;
}

.workers-dashboard .mini-stat-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.workers-dashboard .mini-stat-label {
    font-size: 0.75em;
    color: #9ca3af;
    font-weight: 500;
}

.workers-dashboard .card-alert {
    padding: 12px 25px;
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    color: #856404;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workers-dashboard .card-alert i {
    font-size: 1.1em;
}

/* Responsive styles for small width screens */
@media (max-width: 768px) {
    .workers-dashboard .summary-dashboard {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .workers-dashboard .card-header {
        padding: 10px 15px 8px 15px !important;
    }
    
    .workers-dashboard .card-body {
        padding: 10px 15px !important;
    }
    
    .workers-dashboard .stats-grid {
        gap: 12px !important;
    }
    
    .workers-dashboard .stat-item {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    
    .workers-dashboard .stat-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1em !important;
    }
    
    .workers-dashboard .stat-value {
        font-size: 1.3em !important;
    }
}

@media (max-width: 480px) {
    .workers-dashboard .summary-dashboard {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .workers-dashboard .card-header {
        padding: 8px 12px 6px 12px !important;
    }
    
    .workers-dashboard .card-body {
        padding: 8px 12px !important;
    }
    
    .workers-dashboard .card-title {
        font-size: 0.9em !important;
    }
    
    .workers-dashboard .card-progress-circle {
        width: 35px !important;
        height: 35px !important;
    }
    
    .workers-dashboard .stat-item {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .workers-dashboard .stat-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9em !important;
    }
    
    .workers-dashboard .stat-value {
        font-size: 1.2em !important;
    }
}

/* Responsive styles for small screens (e.g., 1280x585) */
@media (max-height: 700px) {
    .workers-dashboard .card-header {
        padding: 8px 25px 8px 20px !important;
    }
    
    .workers-dashboard .card-title {
        font-size: 0.95em !important;
    }
    
    .workers-dashboard .card-title i {
        font-size: 0.9em !important;
        margin-left: 6px !important;
    }
    
    .workers-dashboard .card-progress-circle {
        width: 40px !important;
        height: 40px !important;
        margin-right: 8px !important;
    }
    
    .workers-dashboard .ring-background,
    .workers-dashboard .ring-fill {
        border-width: 4px !important;
    }
    
    .workers-dashboard .ring-text {
        font-size: 0.75em !important;
    }
    
    .workers-dashboard .card-body {
        padding: 10px 15px !important;
    }
    
    .workers-dashboard .stats-grid {
        gap: 12px !important;
    }
    
    .workers-dashboard .stat-item {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    
    .workers-dashboard .stat-item.stat-success {
        padding: 5px !important;
    }
    
    .workers-dashboard .stat-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1em !important;
    }
    
    .workers-dashboard .stat-value {
        font-size: 1.3em !important;
    }
    
    .workers-dashboard .stat-label {
        font-size: 0.85em !important;
    }
    
    .workers-dashboard .stat-subtitle {
        font-size: 0.7em !important;
    }
    
    .workers-dashboard .stats-secondary-row {
        padding: 5px !important;
    }
    
    .workers-dashboard .mini-stat {
        gap: 0px !important;
    }
    
    .workers-dashboard .mini-stat-value {
        font-size: 1.1em !important;
    }
    
    .workers-dashboard .mini-stat-label {
        font-size: 0.7em !important;
    }
}

/* Camp job button - custom blue (avoids # in template which can cause Kendo/Angular errors) */
.btn.camp-job-btn {
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
}
.btn.camp-job-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}
