:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Responsive Grid Utility Classes */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Filter Buttons - Horizontal Scroll on Mobile */
.filter-card {
    margin-bottom: 16px;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

@media (max-width: 768px) {
    .filter-card .card-body {
        padding: 10px !important;
    }

    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .filter-buttons .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        padding: 8px 4px;
        font-size: 11px;
    }
}

.mt-20 {
    margin-top: 20px;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-2-1,
    .grid-1-2 {
        grid-template-columns: 1fr;
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

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

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

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

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

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

.login-header .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--success);
    color: white;
}

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

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--gray-100);
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 18px;
    color: white;
}

.sidebar-header .user-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.sidebar-header .user-name {
    font-weight: 600;
    font-size: 14px;
}

.sidebar-header .user-role {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 4px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-300);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

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

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

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

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

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

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

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

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

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

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-info p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 24px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table td {
    font-size: 14px;
    color: var(--gray-700);
}

/* Status & Priority Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

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

.status-progress {
    background: #dbeafe;
    color: #2563eb;
}

.status-completed {
    background: #d1fae5;
    color: #059669;
}

.status-approved {
    background: #dcfce7;
    color: #16a34a;
}

.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.priority-low {
    background: #e0f2fe;
    color: #0284c7;
}

.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon.edit {
    background: #dbeafe;
    color: #2563eb;
}

.btn-icon.delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon.view {
    background: #d1fae5;
    color: #059669;
}

.btn-icon:hover {
    transform: scale(1.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Task Cards */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.task-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.task-card.priority-high {
    border-left-color: var(--danger);
}

.task-card.priority-medium {
    border-left-color: var(--warning);
}

.task-card.priority-low {
    border-left-color: var(--secondary);
}

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

.task-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.task-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* Table Responsive - Horizontal Scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

.table-responsive .table {
    min-width: 600px;
}

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

    .grid-2-1,
    .grid-1-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile Breakpoint ===== */
@media (max-width: 768px) {

    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sidebar - Hidden by default on mobile */
    .sidebar {
        position: fixed;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    /* Sidebar overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Main content - Full width on mobile */
    .main-content {
        margin-left: 0;
        padding: 70px 12px 20px;
        min-width: 0;
        overflow-x: hidden;
    }

    /* Page header */
    .page-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .page-header>.btn {
        width: 100%;
        justify-content: center;
    }

    .page-title {
        font-size: 18px;
    }

    /* Stats grid - Stacked on mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .stat-info p {
        font-size: 11px;
    }

    /* Grid layouts - Single column */
    .grid-2,
    .grid-3,
    .grid-2-1,
    .grid-1-2 {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .card-header {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .card-title {
        font-size: 14px;
    }

    .card-body {
        padding: 12px;
    }

    /* Tables - Horizontal scroll with minimum width */
    .table-responsive {
        margin: 0 -12px;
        padding: 0 12px;
        overflow-x: auto;
    }

    .table-responsive .table {
        min-width: 500px;
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .table th {
        font-size: 10px;
    }

    /* Action buttons in table */
    .action-buttons {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Badges */
    .badge {
        padding: 2px 6px;
        font-size: 10px;
        white-space: nowrap;
    }

    /* Task cards */
    .task-card {
        padding: 12px;
    }

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

    .task-title {
        font-size: 14px;
    }

    .task-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 11px;
    }

    /* Modal */
    .modal-overlay {
        padding: 10px;
    }

    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-footer {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Buttons */
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }

    textarea.form-control {
        min-height: 80px;
    }

    /* Toast */
    .toast-container {
        left: 10px;
        right: 10px;
        top: 60px;
    }

    .toast {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }

    /* Timeline */
    .timeline {
        padding-left: 16px;
    }

    .timeline-content {
        padding: 12px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 4px;
    }

    .timeline-image {
        max-width: 100%;
    }

    /* Login page */
    .login-box {
        padding: 20px;
        margin: 10px;
    }

    .login-header h1 {
        font-size: 18px;
    }

    .login-header .logo {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    /* File upload */
    .file-upload {
        padding: 20px;
    }

    .file-upload i {
        font-size: 24px;
    }

    /* Empty state */
    .empty-state {
        padding: 30px 15px;
    }

    .empty-state i {
        font-size: 40px;
    }

    .empty-state h3 {
        font-size: 14px;
    }
}

/* ===== Extra Small Mobile (iPhone SE, etc.) ===== */
@media (max-width: 375px) {
    .main-content {
        padding: 60px 8px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        flex-direction: row;
        text-align: left;
        padding: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .stat-info h3 {
        font-size: 18px;
    }

    .page-title {
        font-size: 16px;
    }

    .card-header,
    .card-body {
        padding: 10px;
    }

    .modal {
        max-height: 85vh;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ========================================
   VISIBILITY UTILITIES
   ======================================== */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* ========================================
   MOBILE CARD VIEWS - App-like Design
   ======================================== */
.mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* User Card */
.user-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-100);
}

.user-card-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-800);
}

.user-card-body {
    padding: 12px 16px;
}

.user-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-600);
}

.user-card-row i {
    width: 16px;
    color: var(--gray-400);
    text-align: center;
}

.user-card-row span {
    word-break: break-all;
}

.user-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.user-card-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Task Card Mobile */
.task-card-mobile {
    background: white;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.task-card-mobile.priority-high {
    border-left-color: var(--danger);
}

.task-card-mobile.priority-medium {
    border-left-color: var(--warning);
}

.task-card-mobile.priority-low {
    border-left-color: var(--secondary);
}

.task-card-mobile-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.task-card-mobile-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.task-card-mobile-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.task-card-mobile-body {
    padding: 12px 16px;
}

.task-card-mobile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 12px;
    color: var(--gray-500);
}

.task-card-mobile-row i {
    width: 16px;
    text-align: center;
}

.task-card-mobile-actions {
    display: flex;
    padding: 12px 16px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.task-card-mobile-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Unit Card Mobile */
.unit-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
}

.unit-card-name {
    font-weight: 600;
    font-size: 15px;
}

.unit-card-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.unit-card-body {
    padding: 12px 16px;
}

.unit-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-600);
}

.unit-card-row i {
    width: 16px;
    color: var(--gray-400);
    text-align: center;
}

.unit-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.unit-card-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* Select Styling */
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.file-upload input {
    display: none;
}

.file-upload i {
    font-size: 32px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.file-upload p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Confirmation Dialog */
.confirm-dialog {
    text-align: center;
}

.confirm-dialog i {
    font-size: 48px;
    color: var(--warning);
    margin-bottom: 16px;
}

.confirm-dialog h3 {
    margin-bottom: 8px;
}

.confirm-dialog p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.toast {
    background: white;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Timeline for task responses */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.timeline-author {
    font-weight: 600;
    color: var(--gray-700);
}

.timeline-date {
    color: var(--gray-500);
}

.timeline-message {
    color: var(--gray-600);
    font-size: 14px;
}

.timeline-image {
    margin-top: 12px;
    max-width: 200px;
    border-radius: var(--radius-sm);
}