@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium HSL Color Palette */
    --h: 168; /* Core Teal Hue */
    --s: 83%;
    --primary: hsl(var(--h), var(--s), 24%);
    --primary-light: hsl(var(--h), var(--s), 95%);
    --primary-soft: hsl(var(--h), var(--s), 45%);
    
    --secondary: hsl(271, 91%, 38%);
    --accent: hsl(190, 100%, 45%);
    
    --success: hsl(160, 84%, 39%);
    --danger: hsl(346, 84%, 61%);
    --warning: hsl(43, 100%, 70%);
    
    --dark: hsl(222, 47%, 11%);
    --slate: hsl(215, 25%, 27%);
    --gray: hsl(215, 16%, 47%);
    --light: hsl(210, 40%, 98%);
    --white: #ffffff;

    /* Depth and Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 0 rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 30px -10px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 40px -15px rgba(0,0,0,0.12);
    
    /* Layout Constants */
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --top-nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    /* Animations */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Glassmorphism Templates */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px) saturate(180%);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.shining-text {
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 70%);
    background-size: 200% 100%;
    animation: shine-text 3s infinite linear;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes shine-text {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Global Reset */
* { box-sizing: border-box; outline: none; margin: 0; padding: 0; }

body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--light); 
    background-image: radial-gradient(at 0% 0%, hsla(var(--h), 83%, 24%, 0.03) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, hsla(271, 91%, 38%, 0.02) 0, transparent 50%);
    color: var(--dark);
    line-height: 1.6;
    padding-top: var(--top-nav-height);
    overflow-x: hidden;
}

.container { width: 95%; max-width: 1600px; margin: 0 auto; padding: 5px 0; }

/* Floating Island Header */
.main-header {
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 5px;
    left: 0;
    width: 100%;
    z-index: 2000;
}

.header-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: var(--radius-lg);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    transition: var(--transition);
}

.header-container:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-xl);
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    flex-grow: 1;
}

.logo a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.8px;
}

.logo img {
    height: 40px !important;
    width: auto !important;
    vertical-align: middle;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center;
}

/* Admin Dropdown Styles */
.nav-group {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-group-label {
    color: var(--gray);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    user-select: none;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-group-label:hover {
    background: rgba(0,0,0,0.03);
    color: var(--primary);
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0px;
    opacity: 0.9;
    transition: var(--transition);
}

.nav-group:hover .nav-group-label {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-group:hover .nav-icon {
    transform: translateY(-2px);
}

.nav-group:hover .nav-text {
    opacity: 1;
}

.nav-group:hover .nav-group-label {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-group-label::after {
    content: '▾';
    font-size: 10px;
    opacity: 0.4;
    transition: var(--transition);
    margin-left: 4px;
}

.no-dropdown::after {
    display: none !important;
}

.nav-group:hover .nav-group-label::after {
    transform: rotate(180deg);
    opacity: 1;
}

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

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    min-width: 160px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    list-style: none;
}

.nav-group:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-content li {
    width: 100%;
    margin-bottom: 2px;
}

.dropdown-content a {
    padding: 8px 12px !important;
    font-size: 13px !important;
    width: 100%;
    border-radius: 8px !important;
    flex-direction: row !important;
    gap: 12px !important;
}

.dropdown-content a:hover {
    background: var(--primary-light) !important;
}

/* Ensure icons in dropdown are consistent */
.dropdown-content .icon {
    font-size: 16px;
    min-width: 24px;
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
}

.nav-links li { list-style: none; }

.nav-links a:hover { 
    color: var(--primary); 
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-links li.active a {
    color: var(--primary);
    background: white;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

/* Header Right Actions */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.btn-admin-top {
    background: var(--dark);
    color: white !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 11px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
}

.btn-admin-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back-admin {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
    filter: brightness(1.1);
}

.btn-logout-top {
    color: var(--danger);
    padding: 6px 14px;
    background: hsla(346, 84%, 61%, 0.1);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}

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

/* Premium Component Cards */
.stat-card { 
    background: var(--card-bg); 
    backdrop-filter: var(--card-blur);
    padding: 30px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.6);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
}

.stat-card h3 { 
    font-size: 0.75rem; 
    color: var(--gray); 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-bottom: 12px; 
    font-weight: 700;
}

.stat-card p { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: var(--dark);
    letter-spacing: -1px;
}

/* Section Header Styles */
.section-header {
    margin: 40px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* Grid Layouts */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* Responsive adjustments */
.mobile-toggle { display: none; cursor: pointer; font-size: 24px; color: var(--primary); }

/* Component: Premium Product Cards */
.image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f1f1f1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.stat-card:hover .image-container img {
    transform: scale(1.08);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exclusive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: hsla(11, 84%, 61%, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50px;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.3);
}

.type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.badge-service { background: var(--primary-light); color: var(--primary); }
.badge-product { background: hsla(271, 91%, 38%, 0.1); color: var(--secondary); }

.price-section { margin-top: auto; padding-top: 15px; }

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.old-price {
    font-size: 1.1rem;
    color: var(--gray);
    text-decoration: line-through;
    opacity: 0.6;
}

/* Premium Buttons */
.btn-premium {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    box-shadow: 0 8px 20px -6px hsla(var(--h), var(--s), 24%, 0.4);
}

.btn-premium:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -8px rgba(0,0,0,0.3);
}

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

@media (max-width: 1024px) {
    .header-container { width: 92%; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
}

/* Component: Review Panel (Cart) */
.review-panel {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--light);
}

.cart-info { flex-grow: 1; }
.cart-info h3 { font-size: 16px; margin-bottom: 5px; color: var(--dark); font-weight: 700; }

.nav-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nav-icon {
    font-size: 18px;
}

.nav-group-label, .nav-links li a {
    padding: 10px 18px;
    border-radius: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate);
    text-decoration: none;
    cursor: pointer;
}

.remove-link {
    color: var(--danger);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    background: hsla(346, 84%, 61%, 0.08);
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}

.remove-link:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.2);
}

.summary-box {
    margin-top: 30px;
    padding: 25px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-row.total {
    border-top: 1px dashed hsla(var(--h), var(--s), 24%, 0.2);
    padding-top: 15px;
    color: var(--primary);
}

.total-amount { font-size: 24px; font-weight: 800; }

/* Component: Admin Tables */
.table-container {
    background: var(--card-bg);
    backdrop-filter: var(--card-blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.6);
}

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

.admin-table th {
    background: rgba(0,0,0,0.02) !important;
    color: var(--gray);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-table td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 14px;
    color: var(--slate);
    background: transparent !important;
}

.admin-table tr {
    background: transparent !important;
}

.admin-table tr:hover { background: rgba(0,0,0,0.03) !important; }

.badge, .status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.bg-success, .verified { background: hsla(160, 84%, 39%, 0.1); color: var(--success); }
.bg-danger { background: hsla(346, 84%, 61%, 0.1); color: var(--danger); }
.bg-warning, .pending { background: hsla(43, 100%, 70%, 0.1); color: hsl(43, 100%, 35%); }

/* =========================================
   PREMIUM AUTHENTICATION UI
   ========================================= */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
    background: var(--white);
    overflow: hidden;
}

.auth-sidebar {
    width: 45%;
    background: linear-gradient(135deg, var(--dark) 0%, hsl(var(--h), var(--s), 10%) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 100%;
    top: -50%;
    left: -25%;
    background: radial-gradient(circle, hsla(var(--h), var(--s), 24%, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-panel {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light);
    padding: 60px 40px;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: var(--card-blur);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    margin: auto 0;
}

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

.auth-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.auth-header p {
    color: var(--gray);
    font-size: 15px;
}

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

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-600);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: var(--slate);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-1px);
}

/* =========================================
   FINAL POLISH: AUTHENTICATION & MOBILE
   ========================================= */

@media (max-width: 1024px) {
    .auth-wrapper { 
        position: relative; 
        flex-direction: column; 
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    .auth-sidebar { 
        width: 100%; 
        min-height: 50vh; 
        padding: 60px 20px; 
    }
    .auth-panel { 
        width: 100%; 
        padding: 40px 20px; 
        background: var(--white);
    }
    .auth-card { 
        margin-top: -80px; 
        box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    }
}

/* Hard-Contrast Overrides for Authentication Elements */
.auth-panel h2 { color: var(--slate) !important; }
.auth-panel p { color: var(--gray-600) !important; }
.auth-panel .form-group label { color: var(--gray-700) !important; font-weight: 800; }
.auth-panel .form-group input { border-color: #cbd5e1 !important; color: var(--slate) !important; }
.auth-panel .form-group input::placeholder { color: #94a3b8 !important; }

/* Dashboard Responsive Fixes */
@media (max-width: 768px) {
    .stats-strip {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px;
        margin-top: -40px;
    }
    .welcome-section-premium { padding: 30px 20px; text-align: center; }
}

/* =========================================
   PREMIUM TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

/* =========================================
   PREMIUM REPORT UI COMPONENTS
   ========================================= */

/* Box Border Report Card */
.report-card-premium {
    background: var(--card-bg);
    backdrop-filter: var(--card-blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 30px;
    margin-bottom: 25px;
}

/* Filter Bar for Reports */
.report-filters-premium {
    padding: 25px;
    background: #fdfdfd;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.report-filters-premium .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.report-filters-premium label {
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-filters-premium input, 
.report-filters-premium select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.report-table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.report-table-premium th {
    background: rgba(0,0,0,0.02) !important;
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 20px 25px;
    text-align: left;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05); /* Box internal line */
}

.report-table-premium th:last-child {
    border-right: none;
}

.report-table-premium td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05); /* Box internal line */
    font-size: 13.5px;
    color: var(--slate);
    vertical-align: middle;
    background: transparent !important;
}

.report-table-premium td:last-child {
    border-right: none;
}

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

.report-table-premium tr {
    background: transparent !important;
}

.report-table-premium tr:hover {
    background: rgba(0,0,0,0.03) !important;
}

/* Alignment Helper Classes */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-mono { font-family: monospace; }

/* =========================================
   PREMIUM TOAST NOTIFICATIONS (REDESIGN)
   ========================================= */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}


.toast {
    pointer-events: auto;
    width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 900;
    font-size: 16px;
    color: white;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.toast-message, .toast-msg {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    font-weight: 500;
}

.toast-close {
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.toast-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Success Toast */
#toast-success, .toast-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}
#toast-success .toast-icon, .toast-success .toast-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Error Toast */
#toast-error, .toast-error, #toast-error-val {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.3);
}
#toast-error .toast-icon, .toast-error .toast-icon, #toast-error-val .toast-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Progress Bar Effect */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(0,0,0,0.05);
    width: 100%;
}

.toast.show::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    z-index: 1;
    animation: toast-progress 5s linear forwards;
}

#toast-success.show::before { background: rgba(255,255,255,0.4); }
#toast-error.show::before, #toast-error-val.show::before { background: rgba(255,255,255,0.4); }

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 480px) {
    .toast-container {
        left: 15px;
        right: 15px;
        top: 15px;
    }
    .toast {
        width: auto;
    }
}

/* Premium Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination li a, .pagination li span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    color: var(--slate);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pagination li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

.pagination li.active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(27, 94, 80, 0.3);
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}