* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cal Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
}

.login-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.login-header p {
    color: #718096;
    font-size: 1.1rem;
}

.login-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Register Styles */
.register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
}

.register-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.register-header p {
    color: #718096;
    font-size: 1.1rem;
}

.register-form {
    margin-bottom: 20px;
}

.register-form select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #4a5568;
}

.register-form select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-register {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.register-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.register-footer p {
    color: #718096;
    font-size: 0.9rem;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.register-link-section {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.register-link-section p {
    color: #718096;
    font-size: 0.9rem;
}

/* Setup Styles */
.setup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.setup-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.6s ease-out;
}

.setup-header {
    text-align: center;
    margin-bottom: 30px;
}

.setup-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
}

.setup-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.setup-header p {
    color: #718096;
    font-size: 1.1rem;
}

.setup-form {
    margin-bottom: 30px;
}

.btn-setup {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-setup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.setup-info {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-box i {
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-box h4 {
    color: #2d3748;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-box p {
    color: #718096;
    line-height: 1.5;
    font-size: 0.9rem;
}

.setup-link {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.setup-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #4a5568;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.header-left h1 {
    color: #4a5568;
    font-size: 1.8rem;
    font-weight: 700;
}

.header-left h1 i {
    color: #667eea;
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
}

.sector-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px);
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 90;
    transform: translateX(0);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.admin-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-link span {
    font-size: 1rem;
}

/* Main Content with Sidebar */
.main-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    width: calc(100% - 280px);
}

.main-content.full-width {
    margin-left: 0;
    width: 100%;
}

/* Admin Content */
.admin-content {
    margin-top: 30px;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Remove old admin section tabs styles since we're using sidebar now */
.admin-section-tabs {
    display: none;
}

/* Main Content */
.main-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: #667eea;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-info p {
    color: #718096;
    font-weight: 500;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.sector-overview {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sector-overview h3 {
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sector-overview h3 i {
    color: #667eea;
}

.sector-stats .pending {
    color: #f56565;
    font-weight: 600;
}

.sector-deadlines {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #f7fafc;
}

.sector-deadline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.sector-deadline-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sector-deadline-item label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5563;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sector-deadline-item input {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.task-deadline.sector-overdue {
    color: #dc2626;
    font-weight: 700;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    animation: urgent-pulse 2s infinite;
}

.task-deadline.sector-warning {
    color: #d97706;
    font-weight: 600;
    background: #fffbeb;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #fed7aa;
}

@keyframes urgent-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.sector-deadline-info {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 5px;
    padding: 8px;
    background: #edf2f7;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* Tasks List */
.tasks-list {
    display: grid;
    gap: 15px;
    animation: fadeInUp 0.4s ease-out;
}

.task-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid;
    overflow: hidden;
    word-wrap: break-word;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.task-card.baixa { border-left-color: #48bb78; }
.task-card.media { border-left-color: #ed8936; }
.task-card.alta { border-left-color: #f56565; }
.task-card.urgente { border-left-color: #9f1239; }

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-task-card:hover .admin-actions {
    opacity: 1;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-edit {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.btn-edit:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.btn-delete {
    color: #f56565;
    background: rgba(245, 101, 101, 0.1);
}

.btn-delete:hover {
    background: #f56565;
    color: white;
    transform: scale(1.1);
}

.btn-view {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.btn-view:hover {
    background: #48bb78;
    color: white;
    transform: scale(1.1);
}

.task-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.task-priority {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.task-priority::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.task-priority:hover::before {
    left: 100%;
}

.task-priority::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
}

.task-priority.baixa { 
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #047857;
}

.task-priority.baixa::after {
    content: '\f058'; /* check-circle */
}

.task-priority.media { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #b45309;
}

.task-priority.media::after {
    content: '\f017'; /* clock */
}

.task-priority.alta { 
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #b91c1c;
}

.task-priority.alta::after {
    content: '\f071'; /* exclamation-triangle */
}

.task-priority.urgente { 
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border-color: #7f1d1d;
    animation: urgentPulse 2s infinite;
}

.task-priority.urgente::after {
    content: '\f06a'; /* exclamation-circle */
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(220, 38, 38, 0.7); }
    50% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(220, 38, 38, 0.4); }
}

.task-description {
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.6;
    white-space: pre-line;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
    flex-wrap: wrap;
    gap: 10px;
}

.task-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.task-status i {
    font-size: 1rem;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlide 0.3s ease-out;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    color: #2d3748;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #718096;
}

.task-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
}

.task-detail {
    padding: 30px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-section p {
    color: #718096;
    line-height: 1.7;
    white-space: pre-line;
    word-wrap: break-word;
    font-size: 1rem;
}

.workflow-progress {
    margin: 20px 0;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.workflow-step {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: #a0aec0;
    font-weight: 600;
    font-size: 0.8rem;
}

.workflow-step.completed {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.workflow-step.current {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.mini-step.overdue {
    position: relative;
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    animation: urgent-pulse 1.5s infinite;
}

@keyframes urgent-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.sector-deadlines-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sector-deadline-detail {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.sector-deadline-detail.overdue {
    background: linear-gradient(135deg, #fef2f2 0%, #fef1f1 100%);
    border-left-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.sector-deadline-detail.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #ecfdf5 100%);
    border-left-color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.sector-deadline-detail.in-progress {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.sector-deadline-detail.pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #d97706;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}

.sector-deadline-detail.waiting {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left-color: #94a3b8;
    opacity: 0.8;
}

.sector-deadline-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sector-deadline-detail i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sector-deadline-detail.overdue i {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.sector-deadline-detail.completed i {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.sector-deadline-detail.in-progress i {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.sector-deadline-detail.pending i {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.sector-deadline-detail.waiting i {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.sector-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sector-name::after {
    content: attr(data-description);
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    opacity: 0.8;
}

.deadline-time {
    font-size: 0.875rem;
    color: #4b5563;
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    min-width: 140px;
}

.sector-deadline-detail.overdue .deadline-time {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: #991b1b;
    font-weight: 600;
}

.sector-deadline-detail.completed .deadline-time {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

.sector-deadline-detail.in-progress .deadline-time {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: #1e3a8a;
}

.sector-deadline-detail.pending .deadline-time {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
    color: #92400e;
}

.sector-status-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    min-width: 90px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.sector-status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.sector-status-indicator:hover::before {
    left: 100%;
}

.sector-status-indicator.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #b45309;
}

.sector-status-indicator.in-progress {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #1d4ed8;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(37, 99, 235, 0.2); }
}

.sector-status-indicator.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #047857;
}

.sector-status-indicator.waiting {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
    border-color: #4b5563;
    opacity: 0.8;
}

/* Enhanced status text styles */
.deadline-status {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 100px;
    justify-content: center;
}

.deadline-status.overdue {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: #991b1b;
}

.deadline-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.deadline-status.overdue::before {
    background: #dc2626;
    animation: urgent-pulse 1s infinite;
}

@keyframes urgent-pulse {
    0%, 100% { opacity: 1; transform: scale(1); background: #dc2626; }
    50% { opacity: 0.7; transform: scale(1.4); background: #ef4444; }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .sector-deadline-detail {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    
    .sector-name {
        text-align: left;
    }
    
    .deadline-time,
    .deadline-status,
    .sector-status-indicator {
        min-width: auto;
        width: 100%;
    }
    
    .sector-deadlines-detail {
        padding: 16px;
        gap: 10px;
    }
}

/* Admin Tasks Section */
.admin-tasks-section {
    margin-top: 30px;
}

.admin-tasks-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.admin-tasks-section h3 i {
    color: #667eea;
}

/* Admin Tasks Filters */
.admin-tasks-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-group {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-group i {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    font-size: 0.9rem;
    pointer-events: none;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f7fafc;
    color: #4a5568;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-group.search-group {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .filter-group.search-group {
        grid-column: span 2;
    }
}

.filter-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.7rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.admin-task-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
}

.admin-task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.admin-task-card.baixa { border-left-color: #48bb78; }
.admin-task-card.media { border-left-color: #ed8936; }
.admin-task-card.alta { border-left-color: #f56565; }
.admin-task-card.urgente { border-left-color: #9f1239; }

.task-progress {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.progress-label {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-workflow {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-step {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mini-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.mini-step:hover::before {
    transform: translateX(100%);
}

.mini-step.waiting {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mini-step.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    animation: pendingGlow 2s infinite;
}

@keyframes pendingGlow {
    0%, 100% { box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2), 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2), 0 0 0 2px rgba(245, 158, 11, 0.2); }
}

.mini-step.in-progress {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    animation: progressSpin 3s linear infinite;
}

@keyframes progressSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mini-step.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #047857;
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.mini-step.completed::after {
    content: '\2713';
    position: absolute;
    font-size: 1rem;
    font-weight: bold;
}

.current-sector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #667eea;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.current-sector i {
    font-size: 1.1rem;
    padding: 4px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overall-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.overall-status i {
    font-size: 1rem;
    padding: 3px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overall-status.pending {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
    color: #d97706;
}

.overall-status.pending i {
    background: rgba(217, 119, 6, 0.15);
    color: #d97706;
    animation: pendingPulse 2s infinite;
}

.overall-status.in-progress {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}

.overall-status.in-progress i {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
    animation: spin 2s linear infinite;
}

.overall-status.completed {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
    color: #059669;
}

.overall-status.completed i {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
}

@keyframes pendingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.task-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.task-deadline i {
    font-size: 0.9rem;
    padding: 2px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    color: #667eea;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-deadline.overdue {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fecaca;
    color: #dc2626;
    animation: overduePulse 2s infinite;
}

.task-deadline.overdue i {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    animation: shake 1s infinite;
}

.task-deadline.sector-overdue {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fecaca;
    color: #dc2626;
    font-weight: 700;
    animation: overduePulse 2s infinite;
}

.task-deadline.sector-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fed7aa;
    color: #d97706;
    font-weight: 600;
}

.task-deadline.sector-warning i {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

@keyframes overduePulse {
    0%, 100% { 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(220, 38, 38, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(220, 38, 38, 0.3);
        transform: scale(1.02);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.task-header .task-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.task-header .task-title::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    padding: 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #667eea;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.task-card[data-sector="corte"] .task-title::before {
    content: '\f0c4'; /* cut */
}

.task-card[data-sector="pintura"] .task-title::before {
    content: '\f1fc'; /* paint-brush */
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border-color: rgba(245, 101, 101, 0.2);
}

.task-card[data-sector="solda"] .task-title::before {
    content: '\f6e3'; /* tools */
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
    border-color: rgba(237, 137, 54, 0.2);
}

.task-card[data-sector="montagem"] .task-title::before {
    content: '\f085'; /* cogs */
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border-color: rgba(72, 187, 120, 0.2);
}

/* Filter Tabs - Modern Design */
.filter-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-tab {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #718096;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.filter-tab:hover::before {
    opacity: 1;
}

.filter-tab:hover {
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.filter-tab.active::before {
    opacity: 0;
}

.filter-tab:active {
    transform: translateY(0);
}

/* Users Management */
.users-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.users-header h3 {
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 0;
}

.users-header h3 i {
    color: #667eea;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.user-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.user-card.current-user {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.05);
}

.user-card.current-user:hover {
    border-color: #48bb78;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
}

.user-card.current-user .user-avatar {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.user-details h4 {
    color: #2d3748;
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-username {
    color: #718096;
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace;
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card:hover .user-actions {
    opacity: 1;
}

.user-body {
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    padding: 15px 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-data-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.user-data-item i {
    width: 20px;
    text-align: center;
    color: #a0aec0;
}

.user-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.user-sector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #667eea;
}

.user-created {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sectors Management */
.sectors-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sectors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sectors-header h3 {
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 0;
}

.sectors-header h3 i {
    color: #667eea;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.sector-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.sector-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.sector-card.inactive {
    opacity: 0.6;
    border-color: #cbd5e0;
}

.sector-card.inactive:hover {
    border-color: #a0aec0;
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sector-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sector-icon {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
}

.sector-card.inactive .sector-icon {
    background: rgba(160, 174, 192, 0.1);
    color: #a0aec0;
}

.sector-details h4 {
    color: #2d3748;
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.sector-code {
    color: #718096;
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace;
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0;
}

.sector-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sector-card:hover .sector-actions {
    opacity: 1;
}

.sector-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.sector-body {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    margin: 15px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.sector-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5568;
    background-color: #f7fafc;
    padding: 8px 12px;
    border-radius: 8px;
}

.sector-stat i {
    color: #a0aec0;
}

.sector-position {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #667eea;
}

.sector-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.sector-status.active {
    color: #48bb78;
}

.sector-status.inactive {
    color: #f56565;
}

/* Sector Form */
.sector-form {
    padding: 30px;
}

.sector-form .form-group {
    margin-bottom: 20px;
}

.sector-form .form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* File Upload Styles */
.selected-files {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    background: #f7fafc;
    min-height: 40px;
    display: none;
}

.selected-files.has-files {
    display: block;
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.selected-file:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: #667eea;
    font-size: 1.1rem;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.file-size {
    color: #718096;
    font-size: 0.8rem;
}

.file-remove {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.file-remove:hover {
    background: rgba(245, 101, 101, 0.1);
    transform: scale(1.1);
}

/* Task Comments Section */
.task-comments-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-header h4 {
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.comments-header h4 i {
    color: #667eea;
}

.btn-add-comment {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-comment:hover {
    background: #cbd5e0;
}

.no-comments {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 12px;
    color: #718096;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 15px 20px;
    position: relative;
    border-left: 4px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2d3748;
}

.comment-author i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    color: #667eea;
    font-size: 0.9rem;
}

.comment-sector {
    font-size: 0.8rem;
    font-weight: 500;
    color: #718096;
    background: #eef2f7;
    padding: 3px 8px;
    border-radius: 10px;
}

.comment-time {
    font-size: 0.8rem;
    color: #a0aec0;
}

.comment-text {
    color: #4a5568;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    padding-left: 38px;
}

.notification-badge {
    background-color: #f56565;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    animation: pulse-badge 2s infinite;
}

#epiConfirmBtn {
    position: relative;
}

#epiConfirmBtn .notification-badge {
    position: static;
    margin-left: 8px;
    top: auto;
    right: auto;
    border-radius: 10px;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 101, 101, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0);
    }
}

.task-file-meta {
    color: #718096;
    font-size: 0.8rem;
}

.task-file-description {
    color: #4a5568;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

.task-file-actions {
    display: flex;
    gap: 8px;
}

/* Task Files List */
.task-files-list {
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    background: #f7fafc;
    min-height: 40px;
}

.task-files-list.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-style: italic;
}

.task-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.task-file:last-child {
    margin-bottom: 0;
}

.task-file:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.task-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.task-file-icon {
    color: #667eea;
    font-size: 1.2rem;
}

.task-file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-file-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.task-file-meta {
    color: #718096;
    font-size: 0.8rem;
}

.task-file-description {
    color: #4a5568;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

.task-file-actions {
    display: flex;
    gap: 8px;
}

.btn-download, .btn-file-delete {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-download {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.btn-download:hover {
    background: #48bb78;
    color: white;
    transform: scale(1.1);
}

.btn-file-delete {
    color: #f56565;
    background: rgba(245, 101, 101, 0.1);
}

.btn-file-delete:hover {
    background: #f56565;
    color: white;
    transform: scale(1.1);
}

/* File type icons */
.file-type-image { color: #ed8936; }
.file-type-pdf { color: #e53e3e; }
.file-type-document { color: #3182ce; }
.file-type-spreadsheet { color: #38a169; }
.file-type-archive { color: #805ad5; }
.file-type-text { color: #718096; }
.file-type-default { color: #667eea; }

/* Responsive adjustments for files */
@media (max-width: 768px) {
    .task-file {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .task-file-info {
        cursor: default;
    }
    
    .task-file-actions {
        justify-content: flex-end;
    }
    
    .selected-file {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .file-info {
        flex: 1;
    }
}

/* Responsive adjustments for users */
@media (max-width: 768px) {
    .users-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .users-header h3 {
        text-align: center;
        font-size: 1.3rem;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-actions {
        opacity: 1;
    }
    
    .user-info {
        gap: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .user-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .users-management {
        padding: 20px 15px;
    }
    
    .user-card {
        padding: 12px;
    }
    
    .user-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
    }
    
    .user-actions {
        gap: 6px;
    }
}

/* Responsive adjustments for sectors */
@media (max-width: 768px) {
    .sectors-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sectors-header h3 {
        text-align: center;
        font-size: 1.3rem;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sector-card {
        padding: 15px;
    }
    
    .sector-actions {
        opacity: 1;
    }
    
    .sector-info {
        gap: 12px;
    }
    
    .sector-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .sector-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sectors-management {
        padding: 20px 15px;
    }
    
    .sector-card {
        padding: 12px;
    }
    
    .sector-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .sector-info {
        width: 100%;
    }
    
    .sector-actions {
        gap: 6px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .header-left h1 i {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary span,
    .btn-secondary span {
        display: none;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1025px) {
    .sidebar-overlay {
        display: none;
    }
}

/* Print styles */
@media print {
    .header-right,
    .filter-tabs,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .task-card,
    .admin-task-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .main-content {
        padding: 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .task-card,
    .admin-task-card,
    .stat-card,
    .sector-overview {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        border: 2px solid #000;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Reports Management */
.reports-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.reports-header h3 {
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 0;
}

.reports-header h3 i {
    color: #667eea;
}

.report-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.report-filters select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-filters select:focus {
    outline: none;
    border-color: #667eea;
}

/* Performance Overview */
.performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h4 {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-header h4 i {
    color: #667eea;
    font-size: 1.2rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #48bb78);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.trend-indicator i {
    color: #48bb78;
    font-size: 1.1rem;
}

.quality-stars {
    display: flex;
    gap: 3px;
    margin: 10px 0;
}

.quality-stars i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.bottleneck-info {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.9rem;
}

.bottleneck-delay {
    color: #f56565;
    font-weight: 600;
}

.bottleneck-tasks {
    color: #718096;
}

.metric-description {
    color: #718096;
    font-size: 0.85rem;
    margin: 5px 0 0 0;
}

/* Sector Performance Grid */
.sector-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sector-performance-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.sector-performance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sector-performance-card.status-excellent {
    border-left-color: #10b981;
}

.sector-performance-card.status-good {
    border-left-color: #3b82f6;
}

.sector-performance-card.status-average {
    border-left-color: #f59e0b;
}

.sector-performance-card.status-poor {
    border-left-color: #ef4444;
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sector-performance-card .sector-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sector-performance-card .sector-icon {
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.3rem;
}

.sector-performance-card .sector-details h5 {
    color: #2d3748;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.performance-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-status.status-excellent {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.performance-status.status-good {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.performance-status.status-average {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.performance-status.status-poor {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.efficiency-badge {
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.metric {
    text-align: center;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 5px;
    font-weight: 500;
}

.metric-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.metric-value.overdue {
    color: #ef4444;
}

.performance-bar {
    position: relative;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.bar-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    line-height: 1.2;
}

/* Analytics Tabs */
.analytics-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: #f7fafc;
    padding: 5px;
    border-radius: 10px;
}

.analytics-tab {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #718096;
    flex: 1;
    text-align: center;
}

.analytics-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analytics-tab:hover:not(.active) {
    color: #4a5568;
    background: rgba(255, 255, 255, 0.5);
}

.analytics-tab-content {
    display: none;
}

.analytics-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Stat Change indicators for reports and tables */
.stat-change {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-change.negative, .stat-change.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-change.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Performance Table */
.performance-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.performance-table th,
.performance-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.performance-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-table tbody tr {
    transition: background-color 0.3s ease;
}

.performance-table tbody tr:hover {
    background: #f7fafc;
}

.table-sector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-sector i {
    color: #667eea;
    font-size: 1.1rem;
}

.efficiency-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 60px;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.on-time {
    color: #10b981;
    font-weight: 600;
}

.overdue {
    color: #ef4444;
    font-weight: 600;
}

.task-completion-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.completion-date,
.time-spent,
.sector-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.completion-date i,
.time-spent i,
.sector-deadline i {
    color: #667eea;
    font-size: 1rem;
}

.completion-date {
    border-left-color: #48bb78;
}

.completion-date i {
    color: #48bb78;
}

.time-spent {
    border-left-color: #ed8936;
}

.time-spent i {
    color: #ed8936;
}

.sector-deadline {
    border-left-color: #3b82f6;
}

.sector-deadline i {
    color: #3b82f6;
}

.future-task-card {
    border-left-color: #8b5cf6 !important; /* purple */
    background-color: #fbfaff;
}

.future-task-card .task-status {
    font-weight: 500;
}

/* Mobile responsive adjustments for sector dashboard */
@media (max-width: 768px) {
    .sector-tabs {
        flex-direction: column;
    }
    
    .sector-tab {
        min-width: auto;
        width: 100%;
    }
    
    .current-tasks-controls {
        gap: 15px;
    }
    
    .task-completion-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .history-task-card .task-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .history-task-card .task-badges {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .sector-tabs {
        padding: 6px;
        gap: 6px;
    }
    
    .sector-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .history-header h3 {
        font-size: 1.1rem;
    }
    
    .completion-status {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* EPI Management */
.epis-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.epis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.epis-header h3 {
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 0;
}

.epis-header h3 i {
    color: #667eea;
}

.delivery-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.delivery-filters select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.epis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}