/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #ef4444;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-body: #334155;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body.dark-mode {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --text-body: #cbd5e1;
    --text-heading: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.5;
    transition: background 0.3s ease;
}

/* Auth Screens - World Class Professional Look */
.auth-wrapper {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #818cf8 0%, #6366f1 100%);
    padding: 1.25rem;
}

.auth-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 1.75rem;
    }
}

/* Sidebar Layout (Desktop) */
.desktop-sidebar {
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 1rem;
    z-index: 100;
}

@media (max-width: 991px) {
    .desktop-sidebar { display: none; }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-link.active, .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Main Layout */
.app-container {
    margin-left: 280px;
    padding: 2rem;
    max-width: 1400px;
}

@media (max-width: 991px) {
    .app-container {
        margin-left: 0;
        padding: 1.25rem 1rem 6rem 1rem; /* Space for bottom nav */
    }
}

/* Mobile Billionaire App UI */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85); /* Frosty White */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2.5rem;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    z-index: 1000;
    justify-content: space-between;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .mobile-nav {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

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

.mobile-nav-item {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 6px;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-nav-item i {
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active i {
    transform: translateY(-4px) scale(1.1);
    color: var(--primary);
}

/* Floating Action Button (FAB) */
.fab-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    border: none;
    color: #fff;
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-btn:active {
    transform: scale(0.85) rotate(90deg);
}

/* Mobile Category Luxury Ribbon */
.category-nav-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 12px;
    padding: 10px 5px 20px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-nav-wrapper::-webkit-scrollbar { display: none; }

.cat-pill {
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Premium Mobile Card - Billionaire UI */
.mobile-premium-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color) !important;
}

.mobile-premium-card:active {
    transform: scale(0.98);
}

.action-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: var(--bg-card) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.stack-details .detail-item {
    transition: all 0.2s;
}

.avatar-sm {
    border: 1px solid var(--border-color);
}



.font-premium {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-review-box, .client-review-box {
    font-size: 0.75rem;
    line-height: 1.4;
}

.mobile-app-card::before { display: none; }

.card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.card-main-content { flex-grow: 1; min-width: 0; }

.card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.card-watch-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

body.dark-mode .card-watch-btn {
    background: #1e293b;
    border-color: #334155;
    color: #fff;
}

.card-watch-btn:active { transform: scale(0.9); background: var(--primary); color: #fff; }


@media (max-width: 991px) {
    .mobile-nav { display: flex; }
}

/* Dashboard Cards (Stats) */
.stat-pill {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.stat-pill:active { transform: scale(0.98); }

.pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Excel/Spreadsheet Style Table */
.excel-container {
    animation: fadeIn 0.4s ease-out;
}

.custom-excel-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-excel-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.custom-excel-table tbody td {
    padding: 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; 
}

/* Sticky First Columns for Mobile */
@media (max-width: 768px) {
    .custom-excel-table th:nth-child(2),
    .custom-excel-table td:nth-child(2) {
        position: sticky;
        left: 0;
        z-index: 5;
        background: var(--bg-card) !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    }
    .custom-excel-table th:nth-child(2) { z-index: 15; }
}

.custom-excel-table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.04) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.edit-trigger:hover td {
    color: var(--primary) !important;
}

.italic { font-style: italic; }

.card-status-dot.st-initial { background: #94a3b8; }
.card-status-dot.st-projects { background: #3b82f6; }
.card-status-dot.st-completed { background: #10b981; }
.card-status-dot.st-first-cut { background: #06b6d4; }
.card-status-dot.st-correction { background: #ef4444; }
.card-status-dot.st-final-cut { background: #f59e0b; }
.card-status-dot.st-priority-task { background: #dc2626; }
.card-status-dot.st-hold-task { background: #64748b; }
.card-status-dot.st-review { background: #2563eb; }

.excel-desc-cell, .excel-review-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .custom-excel-table thead th:not(:nth-child(2)):not(:last-child) {
        min-width: 150px;
    }
}

/* Category Navigation Tabs */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.cat-tab {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-tab i {
    transition: transform 0.3s ease;
}

.cat-tab:hover {
    background: var(--bg-main);
    color: var(--primary);
    border-color: var(--primary-light);
}

.cat-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.cat-tab.active i {
    transform: scale(1.1);
}

/* Unified Workspace Grid & Category Boxes */
.category-box {
    animation: fadeIn 0.5s ease-out;
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
}

body.dark-mode .category-box {
    background: rgba(15, 23, 42, 0.4);
}

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

.record-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hover-elevate:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Sidebar and Header adjustments for premium feel */
[class*="bg-opacity-"] {
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .category-box h4 {
        font-size: 1.25rem;
        margin-left: 0.5rem;
    }
    
    .record-card {
        border-radius: 1.25rem;
    }
}


.record-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.record-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
}

.record-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.meta-chip {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2rem;
    background: var(--bg-main);
    color: var(--text-muted);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 1rem;
    padding: 0.8rem 1.2rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    font-size: 0.95rem;
    color: var(--text-body);
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Buttons Professional Style */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}

.btn-primary:active { transform: scale(0.96); }

/* Status Badges */
.badge-pro {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.st-initial { background: #f1f5f9; color: #475569; }
.st-mid { background: #e0f2fe; color: #0369a1; }
.st-final { background: #ffedd5; color: #c2410c; }
.st-completed { background: #dcfce7; color: #15803d; }
.st-projects { background: #f3e8ff; color: #7e22ce; }
.st-first-cut { background: #e0e7ff; color: #4338ca; }
.st-correction { background: #fee2e2; color: #b91c1c; }
.st-final-cut { background: #fef08a; color: #854d0e; }
.st-priority-task { background: #fecdd3; color: #be123c; }
.st-hold-task { background: #e5e7eb; color: #374151; }
.st-review { background: #cffafe; color: #0369a1; }

/* Pagination & Responsive Fixes */
.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@media (max-width: 576px) {
    .pagination .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

