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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-page {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Animated background particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) scale(1.5);
        opacity: 0;
    }
}

.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    margin-bottom: 35px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 26px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.6);
    }
}

.logo-text {
    font-weight: 700;
    font-size: 26px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-title {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-subtitle {
    color: #64748b;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    transition: color 0.3s ease;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

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

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

.form-group input:focus~.input-icon {
    color: #667eea;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
    user-select: none;
}

.password-toggle:hover {
    color: #667eea;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn.primary:active {
    transform: translateY(0);
}

.btn.secondary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    margin-top: 18px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

/* Demo Accounts */
.demo-accounts {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.demo-accounts h3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    font-size: 18px;
}

.demo-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.demo-account:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.demo-role-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-role-badge.admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.demo-role-badge.boss {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.demo-role-badge.employee {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.demo-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.demo-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.demo-email {
    color: #64748b;
    font-size: 12px;
}

.password-note {
    margin-top: 15px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Logout Message */
.logout-message {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
    text-align: center;
    font-weight: 600;
}

/* ===== DASHBOARD LAYOUT STYLES ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 24px;
}

.menu-title {
    padding: 0 24px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #f8fafc;
    color: #1e293b;
    border-left-color: #cbd5e1;
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.menu-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #64748b;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-top: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    animation: blink 2s infinite;
}

.status-dot.offline {
    background: #64748b;
}

.status-dot.away {
    background: #f59e0b;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.status-text {
    color: #64748b;
}

.logout-btn {
    width: 100%;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
    border-color: #fecaca;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.content-header {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.page-subtitle {
    color: #64748b;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 10px 16px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

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

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.notification-bell {
    position: relative;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: #f8fafc;
}

.bell-icon {
    font-size: 18px;
    color: #64748b;
}

.notification-count {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    top: -2px;
    right: -2px;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Today Date Display */
.today-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Attendance Status */
.attendance-status {
    margin-top: 8px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.attendance-status.clocked-out {
    background: #fecaca;
    color: #dc2626;
}

.attendance-status.break {
    background: #fef3c7;
    color: #92400e;
}

/* Time Tracker Widget */
.time-tracker-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.clock-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clock-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.clock-btn.clocked-in {
    background: #10b981;
}

.clock-btn.clocked-out {
    background: #64748b;
}

.current-session {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.session-time {
    color: #1e293b;
    font-family: 'Courier New', monospace;
}

/* ===== EMPLOYEE DASHBOARD SPECIFIC STYLES ===== */
.employee-dashboard {
    background: #f8fafc;
    min-height: 100vh;
}

/* Enhanced Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 24px 32px;
}

.quick-stats .stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-stats .stat-card.personal {
    border-left-color: #3b82f6;
}

.quick-stats .stat-card.in-progress {
    border-left-color: #f59e0b;
}

.quick-stats .stat-card.completed {
    border-left-color: #10b981;
}

.quick-stats .stat-card.hours {
    border-left-color: #8b5cf6;
}

.quick-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.quick-stats .stat-card.in-progress .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.quick-stats .stat-card.completed .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quick-stats .stat-card.hours .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.quick-stats .stat-info {
    flex: 1;
}

.quick-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.quick-stats .stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.quick-stats .stat-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.quick-stats .stat-trend.positive {
    background: #dcfce7;
    color: #166534;
}

.quick-stats .stat-trend.negative {
    background: #fecaca;
    color: #dc2626;
}

.quick-stats .stat-change {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.quick-stats .stat-subtext {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Progress Ring */
.progress-ring {
    position: relative;
    width: 40px;
    height: 40px;
}

.progress-circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease;
}

/* Alert Banner */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 0 32px 24px;
    border-radius: 8px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
}

.alert-banner.urgent {
    background: #fef2f2;
    border-color: #ef4444;
    border-left-color: #ef4444;
}

.alert-banner.info {
    background: #dbeafe;
    border-color: #3b82f6;
    border-left-color: #3b82f6;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
}

.alert-action {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-action:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding: 0 32px 32px;
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.content-card.full-width {
    grid-column: 1 / -1;
}

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

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.view-all {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #1d4ed8;
}

.card-content {
    padding: 24px;
}

/* Enhanced Employee Actions */
.employee-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.action-btn {
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    min-height: 60px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.action-btn.info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.action-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.action-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.action-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.action-text {
    flex: 1;
}

/* Enhanced Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.schedule-time {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    min-width: 70px;
    flex-shrink: 0;
}

.schedule-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    font-size: 14px;
}

.schedule-location {
    font-size: 12px;
    color: #64748b;
}

/* Enhanced Performance Metrics */
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.metric:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

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

.metric-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill.completion {
    background: linear-gradient(135deg, #10b981, #059669);
}

.progress-fill.ontime {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.progress-fill.quality {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.progress-fill.productivity {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.performance-score {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
}

/* Enhanced Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.timeline-description {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.timeline-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* Enhanced Task Items */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.employee-task:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.employee-task.high-priority {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.employee-task.medium-priority {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.employee-task.low-priority {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.employee-task.urgent {
    border-left-color: #dc2626;
    background: #fef2f2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.task-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
}

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

.task-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.task-btn.primary {
    background: #3b82f6;
    color: white;
}

.task-btn.success {
    background: #10b981;
    color: white;
}

.task-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card Actions */
.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

/* Loading States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    color: #64748b;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== REPORTS PAGE STYLES ===== */
.reports-container {
    padding: 0;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.header-content h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.report-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 24px;
}

.filters-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

.data-actions {
    display: flex;
    gap: 12px;
}

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

.btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.btn.secondary:hover {
    background: #e2e8f0;
}

.btn.success {
    background: #10b981;
    color: white;
}

.btn.success:hover {
    background: #059669;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    padding: 0 24px 24px;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.report-card.large {
    grid-column: span 2;
}

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

.card-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #667eea;
    border-radius: 2px;
}

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

.btn-sm {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-sm:hover {
    background: #e2e8f0;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 16px;
}

.chart-container.small {
    height: 200px;
}

.chart-container.large {
    height: 400px;
}

/* Pivot Table */
.pivot-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.pivot-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
}

.pivot-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.pivot-table tr:hover {
    background: #f8fafc;
}

.metric-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.metric-badge.positive {
    background: #dcfce7;
    color: #166534;
}

.metric-badge.negative {
    background: #fee2e2;
    color: #991b1b;
}

.metric-badge.neutral {
    background: #f3f4f6;
    color: #374151;
}

/* Upload Section */
.upload-section {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.upload-text {
    margin-bottom: 20px;
    color: #64748b;
}

.file-input {
    display: none;
}

.file-info {
    margin-top: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
}

.kpi-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.kpi-trend {
    font-size: 12px;
    margin-top: 4px;
}

/* 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 #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design for Reports */
@media (max-width: 1200px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .report-card.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .report-controls {
        flex-direction: column;
        gap: 16px;
    }

    .filters-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .data-actions {
        justify-content: center;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .header-actions,
    .report-controls,
    .card-actions,
    .upload-section {
        display: none !important;
    }

    .report-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-content {
    padding: 0 32px 32px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-card {
    grid-column: 1 / -1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.profile-header {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid #e2e8f0;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-upload-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    background: white;
    transform: translateY(-1px);
}

.upload-icon {
    font-size: 14px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.join-date {
    font-size: 12px;
    color: #94a3b8;
}

.edit-profile-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-profile-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.edit-profile-btn.primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.edit-profile-btn.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.edit-icon {
    font-size: 16px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 32px;
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.info-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ===== TASKS PAGE STYLES ===== */
.tasks-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Tasks Summary */
.tasks-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px 32px;
    background: #f8fafc;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.summary-icon.total {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.summary-icon.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.summary-icon.progress {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.summary-icon.completed {
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-icon.overdue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Tasks Content */
.tasks-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: calc(100vh - 300px);
}

.tasks-section {
    padding: 24px 32px;
    background: #f8fafc;
}

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

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.view-options {
    display: flex;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.view-option {
    padding: 8px 16px;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.view-option.active {
    background: #3b82f6;
    color: white;
}

.view-option:hover:not(.active) {
    background: #f8fafc;
}

.view-icon {
    font-size: 16px;
}

/* Tasks Container */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Task Cards */
.task-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.task-card.urgent {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.task-card.high-priority {
    border-left: 4px solid #f59e0b;
}

.task-card.medium-priority {
    border-left: 4px solid #3b82f6;
}

.task-card.low-priority {
    border-left: 4px solid #10b981;
}

.task-card.overdue {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    animation: pulse 2s infinite;
}

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

.task-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
}

.task-priority {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-high {
    background: #fef3c7;
    color: #92400e;
}

.priority-medium {
    background: #dbeafe;
    color: #1e40af;
}

.priority-low {
    background: #dcfce7;
    color: #166534;
}

.task-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.task-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.task-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.task-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

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

.task-action-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.task-action-btn.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.task-action-btn.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Task Sidebar */
.task-sidebar {
    background: white;
    border-left: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.sidebar-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: #1e293b;
}

.sidebar-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.no-task-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.empty-state {
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* Task Details */
.task-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

.detail-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.detail-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Progress Bar */
.progress-container {
    margin: 16px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 14px;
    color: #64748b;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Comments Section */
.comments-section {
    margin-top: 24px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

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

.comment-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #94a3b8;
}

.comment-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.comment-input {
    display: flex;
    gap: 8px;
}

.comment-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

/* Grid View */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tasks-grid .task-card {
    height: 200px;
    display: flex;
    flex-direction: column;
}

/* Calendar View */
.tasks-calendar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
}

.calendar-day {
    background: white;
    padding: 8px;
    min-height: 100px;
    font-size: 14px;
    color: #64748b;
}

.calendar-day.header {
    background: #f8fafc;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
}

.calendar-day.today {
    background: #dbeafe;
}

.calendar-task {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #64748b;
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-names {
    font-size: 14px;
    color: #64748b;
}

/* Range Input */
.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

.progress-value {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 8px;
}

/* Large Modal */
.modal-content.large {
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tasks-content {
        grid-template-columns: 1fr;
    }

    .task-sidebar {
        position: fixed;
        top: 0;
        right: -400px;
        width: 400px;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
    }

    .task-sidebar.open {
        right: 0;
    }

    .tasks-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tasks-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .controls-left,
    .controls-right {
        width: 100%;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .tasks-summary {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .tasks-section {
        padding: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .task-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .tasks-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 16px;
    }

    .task-header {
        flex-direction: column;
        gap: 8px;
    }

    .task-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .task-actions {
        width: 100%;
        justify-content: space-between;
    }

    .modal-content.large {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Skills Section */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.skills-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.skill-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

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

/* Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: #f1f5f9;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 12px;
    color: #64748b;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #10b981;
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design for Profile */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-content {
        padding: 0 16px 16px;
    }

    .profile-header {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .modal-content {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .avatar-container {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 24px;
    }

    .skills-input {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 16px;
        flex-direction: column;
    }
}

/* Empty States */
.no-data {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .employee-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .content-grid {
        padding: 0 16px 16px;
        gap: 16px;
    }

    .employee-actions {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        flex-direction: column;
        gap: 8px;
    }

    .schedule-time {
        min-width: auto;
    }

    .time-tracker-widget {
        flex-direction: column;
        gap: 8px;
    }

    .alert-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin: 0 16px 16px;
    }

    .content-header {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .task-actions {
        flex-direction: column;
        gap: 4px;
    }

    .task-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .employee-task {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .task-actions {
        width: 100%;
        justify-content: space-between;
    }

    .metric-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
    }

    .search-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 35px 25px;
    }

    .login-title {
        font-size: 26px;
    }

    .logo-text {
        font-size: 20px;
    }

    .demo-account {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .demo-info {
        text-align: center;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1000;
        background: white;
        border: none;
        border-radius: 8px;
        padding: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
}

/* Real-time Notification Styles (Facebook-like) */
@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notification-bell {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-bell.pulse {
    animation: pulse-red 1.5s infinite;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-badge.pop {
    transform: scale(1.3);
}

/* Ensure dropdown overrides specific styles */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #e2e8f0 !important;
    max-height: 480px;
    overflow-y: auto;
    z-index: 10000;
    animation: slideDown 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: top right;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    background-color: #f0f9ff;
    position: relative;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
}

.notification-item.unread .notif-title {
    font-weight: 700;
    color: #0f172a;
}

.notif-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
}

.notif-message {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    display: block;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.notification-header h5 {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    margin: 0;
}

.mark-all-read {
    font-size: 11px;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 600;
}

.mark-all-read:hover {
    text-decoration: underline;
}

@keyframes highlight-fade {
    0% {
        background-color: #dbeafe;
    }

    100% {
        background-color: #f0f9ff;
    }
}

.notification-item.new-arrival {
    animation: highlight-fade 2s ease-out;
}