
/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Orange Color Scheme */
    --orange-primary: #FF6B00;
    --orange-light: #FF8C33;
    --orange-dark: #CC5500;
    --orange-gradient: linear-gradient(135deg, #FF6B00 0%, #FF8C33 100%);
    --orange-glow: 0 0 20px rgba(255, 107, 0, 0.3);
    
    /* Dark Theme Colors */
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #252525;
    --bg-card: #2D2D2D;
    --bg-hover: #383838;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    
    /* Border & Shadows */
    --border-color: #404040;
    --border-light: #4A4A4A;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);
    
    /* Status Colors */
    --status-pending: #F59E0B;
    --status-progress: #3B82F6;
    --status-completed: #10B981;
    --status-accepted: #8B5CF6;
    --status-blocked: #EF4444;
    
    /* Priority Colors */
    --priority-low: #10B981;
    --priority-medium: #F59E0B;
    --priority-high: #EF4444;
    --priority-critical: #DC2626;
    
    /* Layout */
    /* Layout */
--border-radius: 12px;
--border-radius-lg: 16px;
--border-radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Styles */
/* Base Styles with Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Enhanced Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1em;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--orange-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
    text-shadow: var(--orange-glow);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: var(--orange-glow);
}

/* Remove the old logo-icon styles since we're using images now */
.logo-icon {
    /* Remove these styles as we're using image logo */
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 107, 0, 0.1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 80%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-badge {
    background: var(--orange-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.user-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--orange-glow);
}

.logout-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
    transform: translateY(-1px);
    box-shadow: var(--orange-glow);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,0,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.auth-form {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
    background: var(--bg-secondary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}
/* ===== Perfect center eye icon (final) ===== */

.password-wrapper {
    position: relative;
}

/* Space for icon */
.password-wrapper input {
    padding-right: 3.2rem;
}

/* Center relative to INPUT, not label */
.toggle-password {
    position: absolute;
    right: 14px;

    /* anchor to input center */
    top: calc(50% + 18px);
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Icon style */
.toggle-password i {
    color: #ff8c32;
    font-size: 18px;
    line-height: 1;
}

.toggle-password:hover i {
    color: #ffb066;
}


/* Buttons */
/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button */
.btn-primary {
    background: var(--orange-gradient);
    color: white;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 107, 0, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--orange-glow),
        0 8px 25px rgba(255, 107, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(255, 107, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--orange-primary);
    border: 2px solid var(--orange-primary);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--orange-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--orange-glow);
    border-color: var(--orange-primary);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    font-weight: 500;
}

.btn-ghost:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange-primary);
    border-color: var(--orange-primary);
    transform: translateY(-1px);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.4),
        0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.4),
        0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Button Sizes */
.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-icon {
    padding: 1rem;
    aspect-ratio: 1;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section {
    background: var(--orange-gradient);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 15s infinite linear;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.welcome-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--orange-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--orange-gradient);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.stat-number {
    color: var(--orange-primary);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    transition: var(--transition);
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,0,0.1), transparent);
    transition: left 0.6s;
}

.quick-action-card:hover::before {
    left: 100%;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-primary);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-action-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.quick-action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeIn 1.2s ease-out;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeIn 1.4s ease-out;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,0,0.05), transparent);
    transition: left 0.6s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--orange-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.card-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.status-pending { 
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-in-progress { 
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}

.status-completed { 
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
}

.status-accepted { 
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    border-color: rgba(139, 92, 246, 0.3);
}

.status-blocked { 
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.card:hover .status-badge {
    transform: scale(1.05);
}

/* Priority Badges */
.priority-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.priority-low { 
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
}

.priority-medium { 
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

.priority-high { 
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.priority-critical { 
    background: rgba(220, 38, 38, 0.15);
    color: #DC2626;
    border-color: rgba(220, 38, 38, 0.3);
    font-weight: 700;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--orange-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.progress-bar-small {
    width: 80px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

/* Card Content */
.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item strong {
    color: var(--text-secondary);
    min-width: 80px;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
}

/* Forms in Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--bg-hover);
    color: var(--orange-primary);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--orange-primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.progress-value {
    text-align: center;
    font-weight: 600;
    color: var(--orange-primary);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Projects & Tasks Pages */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-light);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--orange-primary);
    font-weight: 700;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

/* Tasks Table */
.tasks-table-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
}

.tasks-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tasks-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.tasks-table tr:hover {
    background: var(--bg-hover);
}

.tasks-table tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.75rem;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.5s ease-out;
    border: 1px solid transparent;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state .card-title {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-primary);
}

/* Selection */
::selection {
    background: rgba(255, 107, 0, 0.3);
    color: var(--text-primary);
}

/* Focus outline */
*:focus {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .user-info {
        margin-left: auto;
    }
    
    .main-content {
        padding: 1.5rem;
        margin-top: 100px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .quick-actions-grid,
    .card-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-table-container {
        overflow-x: auto;
    }
    
    .tasks-table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        order: 2;
    }
    
    .user-info {
        order: 3;
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
    
    .main-content {
        margin-top: 140px;
        padding: 1rem;
    }
    
    .card-actions,
    .project-actions,
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header,
    .btn,
    .card-actions {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* Project Details Styles */
.project-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.project-overview {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.overview-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-gradient);
    border-radius: 50%;
}

.overview-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-large {
    flex: 1;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-percentage {
    font-weight: 600;
    color: var(--orange-primary);
    min-width: 40px;
}

.overview-stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status {
    margin-bottom: 0.5rem;
}

.deadline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-description-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.project-description-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.details-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.task-item:hover {
    border-color: var(--orange-light);
    transform: translateY(-2px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-info {
    flex: 1;
}

.task-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.task-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.task-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.task-assignee,
.task-due,
.task-progress {
    color: var(--text-secondary);
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.team-member:hover {
    border-color: var(--orange-light);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.member-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.member-since {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
    
    .task-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .task-details {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
}


/* Enhanced Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #2D2D2D 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);
    animation: float 20s infinite linear;
}

.auth-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(255, 107, 0, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, 30px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.auth-form {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 107, 0, 0.1),
        0 0 50px rgba(255, 107, 0, 0.1);
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.auth-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 107, 0, 0.1) 25%, 
        rgba(255, 107, 0, 0.05) 50%, 
        rgba(255, 107, 0, 0.1) 75%, 
        transparent 100%);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.auth-form:hover::before {
    opacity: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

/* Updated Logo Styles */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.auth-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 
        0 8px 20px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.auth-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Main header logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--orange-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: var(--orange-glow);
}

/* Team member avatar fallback to image */
.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Comment author avatar fallback to image */
.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo animation */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 8px 20px rgba(255, 107, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 
            0 12px 25px rgba(255, 107, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .auth-logo-img {
        width: 42px;
        height: 42px;
    }
    
    .auth-logo-text {
        font-size: 1.75rem;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .auth-logo {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-logo-text {
        font-size: 1.5rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 4px rgba(255, 107, 0, 0.15),
        0 8px 25px rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder {
    color: transparent;
}

/* Enhanced Buttons */
.btn-primary {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--orange-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(255, 107, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(255, 107, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Enhanced Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert.error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(220, 38, 38, 0.1) 100%);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

.alert.success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(5, 150, 105, 0.1) 100%);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.auth-footer a {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.auth-footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.auth-footer a:hover {
    color: var(--orange-light);
    background: rgba(255, 107, 0, 0.1);
}

.auth-footer a:hover::before {
    width: 80%;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: var(--orange-gradient);
}

/* Role Select Styling */
.role-select {
    position: relative;
}

.role-select::after {
    content: '👥';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-form {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .auth-logo-text {
        font-size: 1.75rem;
    }
    
    .auth-form h2 {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-logo {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-logo-text {
        font-size: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.75rem;
    }
}

/* Loading States */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .auth-container::before,
    .auth-form,
    .alert,
    .btn-primary,
    .form-group input,
    .form-group select {
        animation: none;
        transition: none;
    }
    
    .auth-logo-icon {
        animation: none;
    }
}

/* Comments System Styles */
.comments-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding-right: 0.5rem;
}

.comment {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.comment:hover {
    border-color: var(--orange-light);
    transform: translateY(-1px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--orange-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.comment:hover .comment-actions {
    opacity: 1;
}

.delete-comment {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.delete-comment:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.add-comment-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.empty-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-comments .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-comments h3 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Scrollbar for comments */
.comments-container::-webkit-scrollbar {
    width: 6px;
}

.comments-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
    background: var(--orange-primary);
}

/* Comment loading animation */
.comment-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.comment-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-group .btn {
    margin: 0;
}

/* Focus States for Accessibility */
.btn:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
    box-shadow: 
        0 0 0 4px rgba(255, 107, 0, 0.2),
        var(--shadow);
}

/* Disabled State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1.125rem 2.25rem;
        font-size: 1rem;
    }
}

/* jdiiiiiiiiiiiiiiiiiiiiiiiiid side baaaaaaar */

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo {
    font-size: 1.2rem;
    gap: 0.75rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 3px 0;
    transition: var(--transition);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-actions {
    padding: 0 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.sidebar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--orange-primary);
    transform: translateX(5px);
}

.sidebar-btn .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav {
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--orange-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 280px;
    transition: var(--transition);
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 3px 0;
    transition: var(--transition);
}

.header-title h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.header-actions-mobile {
    display: none;
}

/* Dashboard Updates */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out;
}

.welcome-badge {
    background: var(--orange-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Remove quick actions grid from dashboard */
.quick-actions-grid {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions-mobile {
        display: block;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}


/* Reports Page Styles */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.reports-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unread-badge {
    background: var(--orange-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.reports-container {
    animation: fadeIn 1s ease-out;
}

.report-form-section {
    margin-bottom: 3rem;
}

.reports-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-card {
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.report-card.unread {
    border-left-color: var(--orange-primary);
    background: rgba(255, 107, 0, 0.05);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.report-title-section {
    flex: 1;
}

.report-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.report-meta .developer {
    font-weight: 600;
    color: var(--orange-primary);
}

.report-status {
    flex-shrink: 0;
}

.report-content {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.report-content p {
    margin: 0;
    white-space: pre-wrap;
}

.ceo-reply {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.reply-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.reply-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.reply-content p {
    margin: 0;
    white-space: pre-wrap;
}

.report-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.waiting-reply, .replied {
    font-size: 0.9rem;
    font-weight: 600;
}

.waiting-reply {
    color: var(--status-pending);
}

.replied {
    color: var(--status-completed);
}

/* Status badges for reports */
.status-submitted {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-read {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}

.status-replied {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .report-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .report-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .reply-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .reports-header h1 {
        font-size: 2rem;
    }
    
    .report-title {
        font-size: 1.1rem;
    }
}

/* Notifications Styles */
.header-notifications {
    position: relative;
}

.notification-bell {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-bell:hover {
    background: var(--bg-hover);
    color: var(--orange-primary);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.notifications-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unread-count {
    background: var(--orange-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.notification-item.unread {
    border-left-color: var(--orange-primary);
    background: rgba(255, 107, 0, 0.05);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-details {
    flex: 1;
}

.notification-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notification-message {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notification-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

/* File Upload Styles */
.file-attachments {
    margin-top: 1rem;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.attachment-item .file-icon {
    color: var(--orange-primary);
}

.attachment-item .file-name {
    color: var(--text-secondary);
}

.attachment-item .file-size {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Navigation Badge */
.nav-badge {
    background: var(--orange-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: auto;
}

/* Header Notifications */
.header-notifications {
    position: relative;
    margin-right: 1rem;
}

.notification-bell {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell:hover {
    background: var(--bg-hover);
    color: var(--orange-primary);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Header Content Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-actions-mobile {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-notifications {
        margin-right: 0;
    }
    
    .header-title {
        text-align: left;
    }
    
    .header-actions-mobile {
        display: block;
    }
    
    .header-content {
        justify-content: flex-start;
    }
}
/* Tasks Table Styles */
.tasks-table-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.table-responsive {
    overflow-x: auto;
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.tasks-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tasks-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
    font-size: 0.9rem;
}

.tasks-table tr:last-child td {
    border-bottom: none;
}

.tasks-table tr:hover {
    background: var(--bg-hover);
}

/* Task row specific styles */
.task-main-info {
    min-width: 200px;
    max-width: 250px;
}

.task-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.task-description {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
    opacity: 0.8;
}

.task-project .project-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.task-assignee .assignee-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assignee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.task-status .status-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

.task-progress .progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 120px;
}

.progress-bar-small {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-small .progress-fill {
    height: 100%;
    background: var(--orange-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text-small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: center;
}

.task-priority .priority-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

.task-due .due-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.due-date.overdue {
    color: #EF4444;
    font-weight: 600;
}

.overdue-indicator {
    background: #EF4444;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.no-date {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-actions .btn-icon {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.table-actions .btn-icon:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.table-actions .btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.table-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.table-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.pagination-btn:hover {
    background: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
    transform: translateY(-1px);
}

.pagination-current {
    background: var(--orange-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Loading and Empty States */
.loading-text, .error-text {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tasks-table-container {
        border-radius: var(--border-radius);
        margin-left: -1rem;
        margin-right: -1rem;
        border-left: none;
        border-right: none;
    }
    
    .tasks-table th,
    .tasks-table td {
        padding: 1rem 0.75rem;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .table-pagination {
        justify-content: center;
    }
    
    .task-actions .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .task-actions .btn-small {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .task-main-info {
        min-width: 150px;
        max-width: 180px;
    }
    
    .task-title {
        font-size: 0.9rem;
    }
    
    .task-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tasks-table {
        min-width: 700px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .table-actions {
        flex-direction: column;
    }
}

/* Enhanced Dropdown Styling */
.form-group select {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    backdrop-filter: blur(10px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Custom dropdown arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 1.5rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3.5rem;
}

/* Hover state */
.form-group select:hover {
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Focus state */
.form-group select:focus {
    outline: none;
    border-color: var(--orange-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 4px rgba(255, 107, 0, 0.15),
        0 8px 25px rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

/* Option styling */
.form-group select option {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-primary);
    padding: 1rem;
    font-size: 1rem;
    border: none;
}

/* Disabled state */
.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Remove default focus outline for Firefox */
.form-group select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--text-primary);
}

/* Users Management Styles */
.users-table-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

.users-table tr:last-child td {
    border-bottom: none;
}

.users-table tr:hover {
    background: var(--bg-hover);
}

/* User Info Cell */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-you {
    background: var(--orange-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Role Badges */
.role-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-ceo {
    background: rgba(255, 107, 0, 0.15);
    color: #FF6B00;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.role-developer {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Role Select Form */
.role-form {
    margin: 0;
}

.role-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.role-select:hover {
    border-color: var(--orange-primary);
}

.role-select:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 0.5rem;
}

.text-muted {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .users-table-container {
        border-radius: var(--border-radius);
        margin-left: -1rem;
        margin-right: -1rem;
        border-left: none;
        border-right: none;
    }
    
    .users-table th,
    .users-table td {
        padding: 1rem 0.75rem;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .users-table {
        min-width: 600px;
    }
    
    .user-details {
        min-width: 120px;
    }
}

/* ===== Attachments UI ===== */

.attachments-wrapper {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.attachment-card:hover {
    background: #f9fafb;
    border-color: #e5f163;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.file-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* File type colors */
.file-pdf { background: #ef4444; }
.file-doc, .file-docx { background: #2563eb; }
.file-xls, .file-xlsx { background: #16a34a; }
.file-jpg, .file-jpeg, .file-png, .file-gif { background: #9333ea; }
.file-zip, .file-rar { background: #7c2d12; }

/* Default */
.file-icon:not([class*="file-"]) {
    background: #6b7280;
}

.file-info {
    overflow: hidden;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #6b7280;
}
/* ORANGE ICON COLOR */
.nav-icon i,
.icon i,
.bell-icon i,
.logout-icon i {
    color: #ff8c32;
    font-size: 1.15rem;
}

/* Hover effect */
.nav-item:hover .nav-icon i,
.sidebar-btn:hover .icon i {
    color: #ffb066;
}

/* Alignment fix */
.nav-icon,
.icon,
.logout-icon,
.bell-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
}

/* Status badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-you {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 8px;
}

/* Inline forms */
.inline-form {
    display: inline-block;
    margin-right: 8px;
}

/* User status column */
.user-status {
    text-align: center;
}

/* ===== Sidebar icon colors ===== */

/* Default sidebar icon color */
.sidebar .nav-icon i {
    color: #ff8c32; /* orange */
    transition: color 0.2s ease;
}

/* On hover (optional) */
.sidebar .nav-item:hover .nav-icon i {
    color: #ffb066;
}

/* ✅ ACTIVE item → make icon WHITE */
.sidebar .nav-item.active .nav-icon i {
    color: #ffffff !important;
}

/* Also keep text white if needed */
.sidebar .nav-item.active .nav-text {
    color: #ffffff;
}


/* Sidebar main logo */
.side-logo-img {
    height: 80px;          /* adjust as needed */
    width: auto;
    object-fit: contain;
}


/* Enhanced Stats Grid - Friend's Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease-out;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border: none;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.stat-card .label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
    color: rgba(255,255,255,0.95) !important;
}

.stat-card .small {
    font-size: 0.8rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.9) !important;
    margin-top: 0.25rem;
}

/* Color variants */
.card-green { 
    background: linear-gradient(135deg, #28a745, #20c997) !important; 
}

.card-red { 
    background: linear-gradient(135deg, #dc3545, #e83e8c) !important; 
}

.card-blue { 
    background: linear-gradient(135deg, #007bff, #17a2b8) !important; 
}

.card-gray { 
    background: linear-gradient(135deg, #6c757d, #868e96) !important; 
}

.card-orange {
    background: linear-gradient(135deg, #fd7e14, #ffc107) !important;
}

.card-purple {
    background: linear-gradient(135deg, #6f42c1, #7952b3) !important;
}

.dashboard-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.3;
    font-size: 2.5rem;
    z-index: 1;
    color: white;
}

.profit-trend {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        min-height: 120px;
    }
    
    .stat-card .value {
        font-size: 1.5rem;
    }
    
    .dashboard-icon {
        font-size: 2rem;
    }
}

.welcome-section {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 15s infinite linear;
}

.welcome-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}
/* Enhanced Stats Grid for multiple rows */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease-out;
}

/* For CEO (4 cards) - default works fine */
/* For Developer (8 cards) - will automatically wrap to 2 rows of 4 cards */

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ================================
   PROFILE SETTINGS MODAL - INTEGRATED DESIGN
================================ */

/* Modal Container - Matches your theme */
.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-modal.active {
    display: flex;
    opacity: 1;
}

/* Card - Matches your modal-content style */
.profile-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px rgba(255, 107, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

/* Using your existing modalSlideIn animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header - Matches your modal-header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-header h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.profile-header h3::before {
    content: '👤';
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Close button matches your .close-modal */
.profile-header .close-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.profile-header .close-btn:hover {
    background: var(--bg-hover);
    color: var(--orange-primary);
    border-color: var(--orange-primary);
    transform: rotate(90deg);
}

/* Profile Image Section - Matches your cards style */
.profile-image-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.05), transparent);
    transition: left 0.6s;
}

.profile-image-section:hover::before {
    left: 100%;
}

.profile-image-section img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--orange-primary);
    box-shadow: 
        var(--shadow),
        0 0 20px rgba(255, 107, 0, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-image-section img:hover {
    transform: scale(1.05);
    box-shadow: 
        var(--orange-glow),
        0 0 25px rgba(255, 107, 0, 0.3);
}

.image-upload-container {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* File input matches your form inputs */
.profile-image-section input[type="file"] {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.profile-image-section input[type="file"]:hover {
    border-color: var(--orange-light);
    background: var(--bg-hover);
}

.profile-image-section input[type="file"]:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.profile-image-section input[type="file"]::file-selector-button {
    padding: 0.75rem 1.25rem;
    margin-right: 1rem;
    border-radius: var(--border-radius);
    border: none;
    background: var(--orange-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.profile-image-section input[type="file"]::file-selector-button:hover {
    box-shadow: 
        var(--orange-glow),
        0 4px 15px rgba(255, 107, 0, 0.3);
    transform: translateY(-1px);
}

/* Forms - Using your form-group style */
.profile-card form {
    margin-bottom: 2rem;
}

/* Using your .form-group style */
.profile-card .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.profile-card label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Inputs match your form inputs */
.profile-card input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.profile-card input::placeholder {
    color: var(--text-muted);
}

.profile-card input:hover {
    border-color: rgba(255, 107, 0, 0.3);
    background: var(--bg-hover);
}

.profile-card input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
    background: var(--bg-secondary);
}

/* Buttons - Using your btn-primary style */
.profile-card button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--orange-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}

.profile-card button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.profile-card button[type="submit"]:hover::before {
    left: 100%;
}

.profile-card button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--orange-glow),
        0 8px 25px rgba(255, 107, 0, 0.4);
}

.profile-card button[type="submit"]:active {
    transform: translateY(0);
}

/* Divider - Matches your theme */
.profile-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
    position: relative;
}

.profile-card hr::before {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--orange-primary);
    font-size: 0.9rem;
}

/* Danger Zone - Matches your alerts */
.danger-zone {
    margin-top: 2rem;
    padding: 1.75rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.danger-zone h4 {
    font-size: 1.1rem;
    color: var(--status-blocked);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.danger-zone h4::before {
    content: '⚠️';
    font-size: 1.25rem;
}

/* Danger button matches your btn-danger */
.profile-card .danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.profile-card .danger:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.4),
        0 8px 25px rgba(239, 68, 68, 0.3);
}

.profile-card .danger:active {
    transform: translateY(0);
}

/* Current Password Field */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--orange-light);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--orange-primary);
}

/* Success Message */
.profile-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-completed);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.profile-success.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Design - Matches your media queries */
@media (max-width: 768px) {
    .profile-card {
        margin: 1rem;
        padding: 2rem;
        max-width: calc(100% - 2rem);
    }
    
    .profile-image-section {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .profile-image-section img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-header h3 {
        justify-content: center;
    }
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== User Avatar in Header ===== */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid rgba(255, 107, 0, 0.4);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar:hover {
    border-color: var(--orange-primary);
    box-shadow: 
        var(--orange-glow),
        var(--shadow);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Focus States */
.profile-card input:focus-visible,
.profile-card button:focus-visible,
.profile-header .close-btn:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

/* Disabled State */
.profile-card input:disabled,
.profile-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
/* ===== Developer Selector ===== */

.dev-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.dev-select:hover {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.dev-select i {
    color: var(--text-muted);
}

/* dropdown list */
.dev-dropdown {
    display: none;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-height: 230px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

/* show */
.dev-dropdown.show {
    display: block;
}

/* option */
.dev-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dev-option:hover {
    background: var(--bg-hover);
}

/* image */
.dev-option img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--orange-light);
}

/* selected display */
#selected-dev img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

/* ===== Report Attachments ===== */

/* ===== Attachments UI (adapted to existing markup) ===== */

.report-attachments {
    margin-top: 12px;
}

/* Acts like .attachments-wrapper */
.report-attachments ul {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.report-attachments li {
    margin: 0;
}

/* Acts like .attachment-card */
.report-attachments li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* Hover behavior */
.report-attachments li a:hover {
    background: #f9fafb;
    border-color: #e5f163;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

/* Acts like .file-icon */
.report-attachments li a::before {
    content: "FILE";
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #6b7280;
    flex-shrink: 0;
}

/* File name (acts like .file-name) */
.report-attachments li a {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* File size / date (acts like .file-size) */
.report-attachments .muted {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    margin-left: 6px;
}

/* ===== Optional: file-type colors (no HTML changes) ===== */
.report-attachments li a[href$=".pdf"]::before { background: #ef4444; content: "PDF"; }
.report-attachments li a[href$=".doc"]::before,
.report-attachments li a[href$=".docx"]::before { background: #2563eb; content: "DOC"; }
.report-attachments li a[href$=".xls"]::before,
.report-attachments li a[href$=".xlsx"]::before { background: #16a34a; content: "XLS"; }
.report-attachments li a[href$=".jpg"]::before,
.report-attachments li a[href$=".jpeg"]::before,
.report-attachments li a[href$=".png"]::before,
.report-attachments li a[href$=".gif"]::before { background: #9333ea; content: "IMG"; }
.report-attachments li a[href$=".zip"]::before,
.report-attachments li a[href$=".rar"]::before { background: #7c2d12; content: "ZIP"; }

/* File preview styles */
.file-preview-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    max-width: 200px;
}

.file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.file-info {
    flex-grow: 1;
    min-width: 0;
}

.file-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 11px;
    color: #888;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    padding: 0 5px;
}

/* Progress file attachments in task view */
.progress-attachments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.attachment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    background: white;
    transition: all 0.2s;
}

.attachment-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.file-type-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* File type colors */
.pdf { color: #e74c3c; }
.image { color: #3498db; }
.document { color: #2ecc71; }
.zip { color: #f39c12; }
/* ===== Progress Files Modal & Attachments ===== */

/* Progress Files Modal Container */
#progressFilesModal .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
}

#progressFilesModal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

#progressFilesModal .modal-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress Attachments Container */
.progress-attachments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.progress-attachments > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.progress-attachments > p strong {
    color: var(--orange-primary);
    font-weight: 700;
}

/* Attachment Grid */
.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Attachment Card - Matches your theme */
.attachment-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.attachment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.05), transparent);
    transition: left 0.6s;
}

.attachment-card:hover::before {
    left: 100%;
}

.attachment-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-3px);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px rgba(255, 107, 0, 0.1);
}

.attachment-card a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* File Icon Container */
.file-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* File Type Colors - Matches your theme */
.file-pdf { 
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}
.file-image { 
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
}
.file-document { 
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}
.file-zip { 
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}
.file-other { 
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
}

.file-icon .extension {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* File Info */
.file-info {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.file-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.upload-info {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
}

.upload-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
}

.upload-info small:first-child {
    color: var(--orange-light);
    font-weight: 500;
}

/* File Actions */
.file-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.file-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
}

.file-actions .btn-primary {
    background: var(--orange-gradient);
    color: white;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.file-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--orange-glow);
}

.file-actions .btn-secondary {
    background: transparent;
    color: var(--orange-primary);
    border: 1px solid var(--orange-primary);
}

.file-actions .btn-secondary:hover {
    background: var(--orange-primary);
    color: white;
}

/* Empty State */
#progressFilesContainer .text-muted {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* Error State */
#progressFilesContainer .text-danger {
    text-align: center;
    padding: 2rem;
    color: var(--priority-critical);
    font-size: 0.95rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Progress Bar for Files */
.progress-bar-files {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
}

.progress-bar-files .progress-fill {
    height: 100%;
    background: var(--orange-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Upload Date Styling */
.upload-date {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.25rem;
}

/* File Count Badge */
.file-count-badge {
    background: var(--orange-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.75rem;
    box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    #progressFilesModal .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        padding: 1.5rem;
    }
    
    .attachment-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .file-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .file-name {
        font-size: 0.85rem;
    }
    
    .file-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .attachment-grid {
        grid-template-columns: 1fr;
    }
    
    .attachment-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }
    
    .attachment-card a {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .file-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .file-info {
        text-align: left;
    }
    
    .upload-info {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .file-actions {
        flex-direction: row;
        margin-top: 0.5rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-files {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    animation: pulse 1.5s infinite;
}

.loading-files .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--orange-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Lightbox overlay for images */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--orange-primary);
    color: white;
    transform: rotate(90deg);
}

/* Download Progress */
.download-progress {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-width: 300px;
    animation: slideInUp 0.3s ease-out;
}

.download-progress h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.download-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.download-progress .progress-bar .progress-fill {
    height: 100%;
    background: var(--orange-gradient);
    transition: width 0.3s ease;
}

.download-progress .progress-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}