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

:root {
    /* Color Palette */
    --primary-color: #6366f1; /* Indigo 500 */
    --primary-hover: #4f46e5; /* Indigo 600 */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary-color: #10b981; /* Emerald 500 */
    --secondary-hover: #059669; /* Emerald 600 */
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Backgrounds & Surfaces */
    --dark-bg: #0b0f19;
    --dark-surface: #151b2d;
    --light-bg: #f8fafc;
    --light-surface: #ffffff;
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions & Shadows */
    --transition-speed: 0.25s;
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.03), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 40px -10px rgba(99, 102, 241, 0.08);

    /* Dimensions */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

/* Navbar Style Upgrade (Glassmorphic) */
.navbar {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.brand-logo span {
    color: var(--primary-color);
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    position: relative;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 1.1rem;
    transition: transform var(--transition-speed);
}

.nav-links a:hover i {
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

/* Admin Tag Style */
.admin-tag {
    font-size: 0.65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    display: inline-block;
}

/* User Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all var(--transition-speed);
}

.profile-dropdown-toggle:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.profile-dropdown-toggle .dropdown-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-speed);
    color: #64748b;
}

.profile-dropdown.active .profile-dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    z-index: 1010;
    padding: 8px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-origin: top right;
    animation: scaleIn 0.2s ease forwards;
}

.profile-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-header {
    padding: 12px 18px;
}

.dropdown-header .user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-header .user-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.dropdown-header .user-role {
    font-size: 0.72rem;
    padding: 2px 8px;
    align-self: flex-start;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(226, 232, 240, 0.8);
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 550;
    transition: all var(--transition-speed);
}

.dropdown-item i {
    font-size: 1.15rem;
    color: #64748b;
    transition: color var(--transition-speed);
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item.logout-item:hover {
    color: var(--danger-color);
    background-color: #fef2f2;
}

.dropdown-item.logout-item:hover i {
    color: var(--danger-color);
}

.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.header-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #0f172a;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed);
}

.mobile-menu-toggle:hover {
    background: #e2e8f0;
}

.nav-content {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    margin-left: 3rem;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-content {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 86px;
        left: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: var(--radius-lg);
        padding: 30px 24px;
        box-shadow: var(--shadow-lg);
        gap: 24px;
        margin-left: 0;
        z-index: 999;
        backdrop-filter: blur(20px);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-content.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1.2rem;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        background: #f8fafc;
        border-radius: var(--radius-sm);
        white-space: nowrap;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .nav-actions .btn {
        width: 100%;
    }

    .profile-dropdown {
        width: 100%;
    }
    
    .profile-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        background: #f8fafc;
    }
    
    .profile-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(226, 232, 240, 0.6);
        margin-top: 8px;
        animation: none;
    }
}

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

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    border: 2px solid transparent;
    outline: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.35);
    filter: brightness(1.05);
}

.btn-outline {
    border-color: var(--border-color);
    background: white;
    color: #334155;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.btn-ghost {
    background-color: transparent;
    color: #64748b;
}

.btn-ghost:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.btn-block {
    width: 100%;
}

/* UI Cards */
.card {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.7);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.15);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.hero-actions .btn {
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
        letter-spacing: -0.5px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Premium Forms */
.form-container {
    max-width: 480px;
    margin: 60px auto;
    background: var(--light-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    font-family: var(--font-heading);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all var(--transition-speed);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Premium Tables */
.premium-table-container {
    overflow-x: auto;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    background: white;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.premium-table th {
    background-color: #f8fafc;
    padding: 16px 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.premium-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr {
    transition: background-color var(--transition-speed);
}

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

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-warning {
    background-color: #fef08a;
    color: #854d0e;
}

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

.badge-info {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Tab Panels Selectors */
.workspace-tabs .tab-btn {
    font-family: var(--font-heading);
    border-bottom: 3px solid transparent;
    outline: none;
}

.workspace-tabs .tab-btn:hover {
    color: var(--primary-color) !important;
}

/* Gradient Stats Cards */
.gradient-stat-card {
    background: var(--secondary-gradient);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.gradient-stat-card::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -100px;
    right: -100px;
}

/* Layout Utilities */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}

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

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

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

.flex-between-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .grid-2, .grid-1-2, .grid-2-1 {
        grid-template-columns: 1fr;
    }
}

/* Footer layout */
/* Footer layout */
.footer {
    background: linear-gradient(180deg, #0b0f19 0%, #05070c 100%);
    color: #94a3b8;
    padding: 80px 0 40px;
    margin-top: 80px;
    position: relative;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Subtle gradient top glow bar */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand .brand-logo {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    font-weight: 800;
    display: inline-block;
}

.footer-brand .footer-desc {
    color: #94a3b8;
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.footer-contact-info {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info p {
    font-size: 0.88rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.footer-contact-info p i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials .social-btn {
    background: rgba(255, 255, 255, 0.03);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-socials .social-btn i {
    font-size: 1.25rem;
}

.footer-socials .social-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.link-column h4 {
    color: white;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.link-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.link-column a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.link-column a i {
    font-size: 1rem;
    color: transparent;
    transition: all 0.2s ease;
    margin-left: -16px;
    opacity: 0;
}

.link-column a:hover {
    color: white;
    padding-left: 16px;
}

.link-column a:hover i {
    color: var(--primary-color);
    margin-left: 0;
    opacity: 1;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom .copyright-text {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #64748b;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links .divider {
    color: #334155;
    font-size: 0.88rem;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer {
        padding: 60px 0 30px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Vertical List Layout & Pagination styling */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 2rem;
}
.list-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}
.list-card:hover .card-left-border {
    opacity: 1 !important;
}
.list-card:hover .project-title-link,
.list-card:hover .contest-title-link {
    color: var(--primary-color) !important;
}
.list-card:hover .btn-outline {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
}
.card-left-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.card-info {
    flex: 1;
    min-width: 0;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.badge-tag {
    background: #e0e7ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card-title {
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}
.card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
    min-width: 110px;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.stat-value {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}
.stat-value.timer {
    color: #b45309;
}
.card-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 250px;
    justify-content: flex-end;
}
.card-budget {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    white-space: nowrap;
}
.card-actions .btn {
    min-width: 120px;
}

/* Pagination container and buttons */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-heading);
}
.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}
.pagination-btn.active {
    background: var(--primary-gradient);
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px 0 rgba(99, 102, 241, 0.2);
}
.pagination-btn:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
    color: #cbd5e1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .list-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .card-actions {
        justify-content: space-between;
        min-width: auto;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
    }
    .card-stats {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Admin Sub Navbar for Desktop */
.admin-sub-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin: 0;
    position: sticky;
    top: 76px;
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}
.admin-sub-nav-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
}
.admin-sub-nav-container::-webkit-scrollbar {
    display: none;
}
.admin-sub-nav-container a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.admin-sub-nav-container a i {
    font-size: 1.1rem;
}
.admin-sub-nav-container a:hover,
.admin-sub-nav-container a.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.06);
}

/* Hide/Show admin links based on viewport */
@media (min-width: 993px) {
    .nav-links .admin-desktop-hide {
        display: none !important;
    }
}
@media (max-width: 992px) {
    .nav-links .admin-desktop-show {
        display: none !important;
    }
    .admin-sub-navbar {
        display: none !important;
    }
}

/* Escrow Stepper Styles */
.escrow-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 0;
    padding: 0 10px;
}
.escrow-stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
}
.escrow-stepper-line {
    position: absolute;
    top: 25px;
    left: 40px;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 2;
    transition: width 0.4s ease;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
    text-align: center;
}
.step-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.step-item.active .step-icon {
    background-color: #e0e7ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.step-item.completed .step-icon {
    background: var(--secondary-gradient);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}
.step-label {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #64748b;
    transition: color 0.3s ease;
}
.step-item.active .step-label {
    color: var(--primary-color);
}
.step-item.completed .step-label {
    color: var(--secondary-color);
}
.step-sublabel {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

@media (max-width: 576px) {
    .escrow-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 20px;
    }
    .escrow-stepper::before {
        top: 25px;
        bottom: 25px;
        left: 35px;
        width: 4px;
        height: calc(100% - 50px);
    }
    .escrow-stepper-line {
        top: 25px;
        left: 35px;
        width: 4px;
        height: 0;
        transition: height 0.4s ease;
    }
    .step-item {
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }
    .step-icon {
        margin-bottom: 0;
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}

/* Dark Theme Overrides */
.dark-theme {
    --light-bg: #0b0f19;
    --light-surface: #151b2d;
    --border-color: #1e293b;
    --border-color-hover: #334155;
    color: #cbd5e1;
}
.dark-theme body {
    background-color: var(--light-bg);
    color: #cbd5e1;
}
.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6 {
    color: #ffffff;
}
.dark-theme .navbar {
    background-color: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
.dark-theme .brand-logo {
    color: #ffffff;
}
.dark-theme .nav-links a {
    color: #94a3b8;
}
.dark-theme .nav-links a:hover,
.dark-theme .nav-links a.active {
    color: var(--primary-color);
}
.dark-theme .profile-dropdown-toggle {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #ffffff;
}
.dark-theme .profile-dropdown-toggle:hover {
    background: #1e293b;
    border-color: #475569;
}
.dark-theme .profile-dropdown .dropdown-menu {
    background: rgba(21, 27, 45, 0.98);
    border: 1px solid rgba(71, 85, 105, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.dark-theme .dropdown-item {
    color: #94a3b8;
}
.dark-theme .dropdown-item:hover {
    background-color: #1e293b;
    color: var(--primary-color);
}
.dark-theme .dropdown-divider {
    background-color: rgba(71, 85, 105, 0.4);
}
.dark-theme .dropdown-header .user-name {
    color: #ffffff;
}
.dark-theme .card {
    background: var(--light-surface);
    border-color: rgba(30, 41, 59, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.dark-theme .card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.dark-theme .form-container {
    background: var(--light-surface);
    border-color: rgba(30, 41, 59, 0.8);
}
.dark-theme .form-group input, 
.dark-theme .form-group select, 
.dark-theme .form-group textarea {
    background: #0b0f19;
    border-color: #1e293b;
    color: #ffffff;
}
.dark-theme .form-group input:focus, 
.dark-theme .form-group select:focus, 
.dark-theme .form-group textarea:focus {
    background: #151b2d;
    border-color: var(--primary-color);
}
.dark-theme .form-group label {
    color: #cbd5e1;
}
.dark-theme .premium-table-container {
    border-color: rgba(30, 41, 59, 0.8);
    background: var(--light-surface);
}
.dark-theme .premium-table {
    background: var(--light-surface);
}
.dark-theme .premium-table th {
    background-color: #0b0f19;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}
.dark-theme .premium-table td {
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
}
.dark-theme .premium-table tr:hover {
    background-color: #0b0f19;
}
.dark-theme .hero {
    background: linear-gradient(135deg, #0b0f19 0%, #151b2d 100%);
}
.dark-theme .hero h1 {
    color: #ffffff;
}
.dark-theme .hero p {
    color: #94a3b8;
}
.dark-theme .btn-outline {
    background: #151b2d;
    border-color: #1e293b;
    color: #cbd5e1;
}
.dark-theme .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

/* Skeleton Loading Animation */
.skeleton {
    background-color: #e2e8f0;
    background-image: linear-gradient(
        90deg,
        #e2e8f0 0px,
        #f1f5f9 40px,
        #e2e8f0 80px
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 4px;
    display: inline-block;
}
.dark-theme .skeleton {
    background-color: #1e293b;
    background-image: linear-gradient(
        90deg,
        #1e293b 0px,
        #151b2d 40px,
        #1e293b 80px
    );
}
@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background var(--transition-speed), color var(--transition-speed);
}
.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}
.dark-theme .theme-toggle-btn {
    color: #94a3b8;
}
.dark-theme .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================
   PREMIUM PAGE DESIGN UPGRADES & UTILITIES
   ========================================== */

/* Glassmorphic Filter Bar */
.glass-filter-bar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease;
}

.dark-theme .glass-filter-bar {
    background: rgba(21, 27, 45, 0.75) !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.glass-filter-bar select, 
.glass-filter-bar input {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dark-theme .glass-filter-bar select, 
.dark-theme .glass-filter-bar input {
    background: rgba(11, 15, 25, 0.6) !important;
    border-color: #1e293b !important;
}

.glass-filter-bar select:focus, 
.glass-filter-bar input:focus {
    background: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.dark-theme .glass-filter-bar select:focus, 
.dark-theme .glass-filter-bar input:focus {
    background: #151b2d !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important;
}

/* Premium Badges & Badges Gradients */
.badge-prize {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.25) !important;
    font-weight: 800 !important;
    border: 1px solid rgba(251, 191, 36, 0.2) !important;
}

/* Floating rank elements */
.rank-badge-premium {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-gold-premium {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    color: #78350f;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.rank-silver-premium {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.25);
}

.rank-bronze-premium {
    background: linear-gradient(135deg, #ffedd5 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid rgba(234, 88, 12, 0.3);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.rank-default-premium {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border-color);
}

.dark-theme .rank-default-premium {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

/* Verified Premium Badge */
.verified-tag-premium {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.05) !important;
}

/* Avatar glowing rings on hover */
.avatar-glow {
    position: relative;
    border: 4px solid var(--primary-color) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0) !important;
}

.designer-card:hover .avatar-glow {
    transform: scale(1.05);
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.2) !important;
}

/* Portfolio Work Slider Tweaks */
.portfolio-slider-premium {
    position: relative;
    width: 100%;
    height: 140px !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
}

.dark-theme .portfolio-slider-premium {
    background: #0b0f19;
    border-color: #1e293b !important;
}

.slider-btn-premium {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    opacity: 0;
    transition: all 0.2s ease !important;
    z-index: 10;
}

.portfolio-slider-premium:hover .slider-btn-premium {
    opacity: 1;
}

.slider-btn-premium:hover {
    background: var(--primary-gradient) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3) !important;
}

/* Premium Modals Overlay */
.custom-modal-overlay {
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease;
}

.custom-modal-card {
    background: var(--light-surface) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: var(--shadow-premium) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark-theme .custom-modal-card {
    background: var(--dark-surface) !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* Dynamic pulse animation for countdown/warning */
.pulse-warning {
    animation: warning-pulse-anim 2s infinite ease-in-out;
}

@keyframes warning-pulse-anim {
    0%, 100% { border-color: rgba(245, 158, 11, 0.2); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 10px 0 rgba(245, 158, 11, 0.15); }
}

.pulse-danger {
    animation: danger-pulse-anim 2s infinite ease-in-out;
}

@keyframes danger-pulse-anim {
    0%, 100% { border-color: rgba(239, 68, 68, 0.2); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 10px 0 rgba(239, 68, 68, 0.15); }
}

/* Chat Speech Bubble Styling */
.speech-bubble-client {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 18px 18px 2px 18px !important;
}

.speech-bubble-freelancer {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-radius: 18px 18px 18px 2px !important;
    border: 1px solid var(--border-color) !important;
}

.dark-theme .speech-bubble-freelancer {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

/* Timeline updates dots pulsing */
.timeline-pulse-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    animation: timeline-dot-pulse 2s infinite;
}

@keyframes timeline-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.35); }
}

.dark-theme .timeline-pulse-dot {
    border-color: var(--dark-surface);
}

/* Premium Page Header Banners */
.page-header-banner {
    background: linear-gradient(135deg, #e0e7ff 0%, #e0f2fe 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.dark-theme .page-header-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #082f49 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-header-banner h1 {
    color: #0f172a;
    transition: color 0.3s;
}
.dark-theme .page-header-banner h1 {
    color: #ffffff;
}

.page-header-banner p {
    color: #475569;
    transition: color 0.3s;
}
.dark-theme .page-header-banner p {
    color: #cbd5e1;
}

.page-header-banner.banner-contests {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
}
.dark-theme .page-header-banner.banner-contests {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 100%);
}

.page-header-banner.banner-designers {
    background: linear-gradient(135deg, #f3e8ff 0%, #fae8ff 100%);
}
.dark-theme .page-header-banner.banner-designers {
    background: linear-gradient(135deg, #3b0764 0%, #4a044e 100%);
}


