/* =============================================
   SHASASCARVES - MAIN STYLESHEET
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700;800;900&display=swap');

/* Bootstrap Icons */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');

/* Bootstrap 5.3 CSS Only */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    /* =============================================
       BRAND COLORS - White & Gold (Logo: #E4AF5A)
       ============================================= */
    --primary: #FFFFFF;
    --primary-dark: #F5F0E6;
    --primary-light: #FAFAFA;
    --accent: #E4AF5A;
    --accent-dark: #C4953A;
    --accent-light: #FDF5E6;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Status Colors */
    --success: #66BB6A;
    --danger: #EF5350;
    --warning: #FFA726;
    --info: #42A5F5;

    /* Typography */
    --font-primary: 'Roboto Slab', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

.text-primary { color: var(--gray-900) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--gray-600) !important; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.5rem;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    border-color: var(--accent-light);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

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

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--accent-dark);
    border-color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--accent);
    color: var(--white);
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: var(--font-size-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   NAVBAR (PUBLIC) - White & Gold
   ============================================= */
.navbar-public {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 2px solid var(--accent-light);
}

.navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: var(--font-size-xl);
    color: var(--gray-900);
    letter-spacing: -0.5px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--accent);
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search - flexible center */
.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
    width: 100%;
}

.search-bar input {
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    width: 100%;
    font-size: var(--font-size-sm);
    background-color: var(--white);
}

.search-bar input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 175, 90, 0.15);
}

.search-bar .search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.1rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.search-suggestions.show {
    display: block;
}

.search-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestions .suggestion-item:hover {
    background-color: var(--accent-light);
}

/* Actions - kanan */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--gray-700);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
}

.btn-icon:hover {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--gray-200);
    margin-left: 0.25rem;
}

.btn-icon.dropdown-toggle::after {
    display: none;
}

.navbar-public .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Mobile Nav Links */
.mobile-nav-links {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.mobile-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.mobile-nav-item:hover {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

/* =============================================
   DROPDOWN MENU
   ============================================= */
.dropdown-menu {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
    min-width: 220px;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.2s ease;
}

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

.dropdown-item {
    padding: 0.7rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--accent);
}

.dropdown-item.text-danger {
    color: var(--danger) !important;
}

.dropdown-item.text-danger:hover {
    background: #FDE8E8;
}

.dropdown-divider {
    border-color: var(--gray-200);
    margin: 0.25rem 0;
    opacity: 0.5;
}

.dropdown-item-text {
    padding: 0.7rem 1.25rem;
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer h5 {
    color: var(--white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.footer a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--white);
}

.footer .footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    text-align: center;
    font-size: var(--font-size-sm);
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card-price {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--accent-dark);
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
    position: relative;
    cursor: pointer;
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    z-index: 2;
}

.product-card .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-card .btn-wishlist,
.product-card .btn-quick-view {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-700);
}

.product-card .btn-wishlist:hover,
.product-card .btn-quick-view:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* =============================================
   FILTER SIDEBAR
   ============================================= */
.filter-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--gray-200);
}

.filter-section h5 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
}

.filter-group {
    margin-bottom: var(--spacing-lg);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: var(--accent);
    transform: scale(1.1);
}

.color-swatch.active::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Size Buttons */
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.375rem 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

/* Price Range */
.price-range-container {
    padding: 0 0.5rem;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

/* =============================================
   TOAST NOTIFICATION - Stylish & Elegant
   White & Gold Theme
   ============================================= */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-custom {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(228, 175, 90, 0.1);
    display: flex;
    align-items: stretch;
    min-width: 340px;
    max-width: 460px;
    overflow: hidden;
    animation: toastSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    pointer-events: auto;
    position: relative;
}

.toast-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    transition: background var(--transition-base);
}

.toast-custom .toast-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 1rem 1.25rem;
    flex-shrink: 0;
}

.toast-custom .toast-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-custom .toast-content {
    flex: 1;
    padding: 1rem 0;
    min-width: 0;
}

.toast-custom .toast-title {
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.toast-custom .toast-message {
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.toast-custom .toast-close {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.9rem 1rem 0 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.toast-custom .toast-close:hover {
    opacity: 1;
}

/* SUCCESS TOAST */
.toast-custom.success::before {
    background: linear-gradient(180deg, #66BB6A, #4CAF50);
}

.toast-custom.success .toast-icon {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.2);
}

.toast-custom.success .toast-title {
    color: #2E7D32;
}

.toast-custom.success .toast-message {
    color: var(--gray-600);
}

.toast-custom.success .toast-close {
    color: #66BB6A;
}

/* ERROR TOAST */
.toast-custom.error::before {
    background: linear-gradient(180deg, #EF5350, #E53935);
}

.toast-custom.error .toast-icon {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #C62828;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.2);
}

.toast-custom.error .toast-title {
    color: #C62828;
}

.toast-custom.error .toast-message {
    color: var(--gray-600);
}

.toast-custom.error .toast-close {
    color: #EF5350;
}

/* WARNING TOAST */
.toast-custom.warning::before {
    background: linear-gradient(180deg, #FFA726, #FB8C00);
}

.toast-custom.warning .toast-icon {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.2);
}

.toast-custom.warning .toast-title {
    color: #E65100;
}

.toast-custom.warning .toast-message {
    color: var(--gray-600);
}

.toast-custom.warning .toast-close {
    color: #FFA726;
}

/* INFO TOAST */
.toast-custom.info::before {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.toast-custom.info .toast-icon {
    background: linear-gradient(135deg, var(--accent-light), #F5E6C8);
    color: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(228, 175, 90, 0.25);
}

.toast-custom.info .toast-title {
    color: var(--accent-dark);
}

.toast-custom.info .toast-message {
    color: var(--gray-600);
}

.toast-custom.info .toast-close {
    color: var(--accent);
}

/* ANIMATIONS */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    80% {
        transform: translateX(4px);
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .toast-custom {
        min-width: auto;
        max-width: 100%;
    }
}

/* =============================================
   MODAL - Stylish & Elegant
   ============================================= */
.modal-custom {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-custom.show {
    opacity: 1;
    visibility: visible;
}

.modal-custom .modal-dialog {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal-custom.show .modal-dialog {
    transform: translateY(0);
}

.modal-custom .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--accent);
    color: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    flex-shrink: 0;
}

.modal-custom .modal-header .modal-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
}

.modal-custom .modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--font-size-lg);
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

.modal-custom .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.modal-custom .modal-body {
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    overflow-y: auto;
    flex: 1;
}

.modal-custom .modal-footer {
    display: flex;
    gap: var(--spacing-md);
    padding: 1rem 1rem;
    border-top: 1px solid var(--gray-200);
    justify-content: flex-end;
    flex-shrink: 0;
}

/* =============================================
   SIDEBAR (ADMIN)
   ============================================= */
.admin-sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--accent-dark);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: all var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 800;
    font-size: var(--font-size-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-brand:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.admin-sidebar.collapsed .sidebar-brand span {
    display: none;
}

.admin-sidebar .sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.admin-sidebar .sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-sidebar .sidebar-menu li a i {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.admin-sidebar.collapsed .sidebar-menu li a span {
    display: none;
}

.admin-sidebar .sidebar-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.admin-sidebar .sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.admin-sidebar .sidebar-footer a:hover {
    color: var(--white);
}

.admin-sidebar .sidebar-footer a i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.admin-sidebar.collapsed .sidebar-footer a span {
    display: none;
}

.admin-main {
    margin-left: 260px;
    transition: margin-left var(--transition-base);
    min-height: 100vh;
    background-color: var(--gray-50);
}

.admin-main.expanded {
    margin-left: 70px;
}

.admin-main .admin-topbar {
    background: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-main .admin-content {
    padding: 1.5rem;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.toggle-sidebar:hover {
    color: var(--accent);
}

/* =============================================
   FORMS
   ============================================= */
.form-control {
    font-family: var(--font-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.85rem;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    background-color: var(--white);
    color: var(--gray-800);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(228, 175, 90, 0.1), 0 2px 8px rgba(0,0,0,0.04);
    outline: none;
    background-color: var(--white);
}

.form-label {
    font-weight: 600;
    font-size: var(--font-size-xs);
    margin-bottom: 0.35rem;
    color: var(--gray-800);
    letter-spacing: 0.3px;
}

/* =============================================
   SELECT / DROPDOWN - Stylish & Elegant
   ============================================= */
.form-select {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    padding: 0.65rem 3rem 0.65rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background-color: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    transition: all var(--transition-base);
    
    /* Custom arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23C4953A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    min-height: 44px;
    line-height: 1.5;
}

.form-select:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
    box-shadow: 0 2px 12px rgba(228, 175, 90, 0.12);
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(228, 175, 90, 0.1), 0 4px 16px rgba(0,0,0,0.06);
    outline: none;
    background-color: var(--white);
}

.form-select:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
    border-color: var(--gray-200);
}

/* Select size variations */
.form-select-lg {
    font-size: var(--font-size-base);
    padding: 0.75rem 3.5rem 0.75rem 1.25rem;
    min-height: 50px;
    border-radius: var(--radius-xl);
    background-size: 14px 9px;
    background-position: right 1.25rem center;
    font-weight: 500;
}

.form-select-sm {
    font-size: var(--font-size-xs);
    padding: 0.45rem 2.5rem 0.45rem 0.75rem;
    min-height: 36px;
    border-radius: var(--radius-md);
}

/* Select option styling */
.form-select option {
    padding: 0.6rem 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    background-color: var(--white);
    color: var(--gray-800);
}

.form-select option:hover,
.form-select option:checked {
    background: linear-gradient(135deg, var(--accent-light), #F5E6C8);
    color: var(--accent-dark);
    font-weight: 600;
}

/* Select with icon on left */
.select-with-icon {
    position: relative;
}

.select-with-icon .select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.select-with-icon .form-select {
    padding-left: 2.75rem;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
}

.badge-success { background-color: var(--success); color: var(--white); }
.badge-danger { background-color: var(--danger); color: var(--white); }
.badge-warning { background-color: var(--warning); color: var(--gray-900); }
.badge-info { background-color: var(--info); color: var(--white); }
.badge-primary { background-color: var(--accent); color: var(--white); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination .page-item .page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    background: var(--white);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.pagination .page-item .page-link:hover {
    background-color: var(--gray-100);
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.empty-state img {
    width: 200px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.7;
}

.empty-state h4 {
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

/* =============================================
   UTILITIES
   ============================================= */
.cursor-pointer { cursor: pointer; }
.text-decoration-none { text-decoration: none !important; }
.fw-bold { font-weight: 700 !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.shadow-hover:hover { box-shadow: var(--shadow-lg) !important; }
.object-fit-cover { object-fit: cover; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }

    .admin-sidebar {
        width: 70px;
    }
    .admin-sidebar .sidebar-brand span,
    .admin-sidebar .sidebar-menu li a span {
        display: none;
    }
    .admin-main {
        margin-left: 70px;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .admin-sidebar.mobile-show {
        transform: translateX(0);
    }
    .admin-sidebar.mobile-show .sidebar-brand span,
    .admin-sidebar.mobile-show .sidebar-menu li a span {
        display: inline;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-main.expanded {
        margin-left: 0;
    }

    .toast-custom {
        min-width: auto;
        max-width: 90vw;
    }

    .form-select-lg {
        font-size: var(--font-size-sm);
        padding: 0.65rem 3rem 0.65rem 1rem;
        min-height: 44px;
    }
}

/* =============================================
   CUSTOM SCROLLBAR - Stylish & Smooth
   ============================================= */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-light) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   CUSTOM TOOLTIP - Feminine & Elegant
   ============================================ */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-dark);
    color: var(--white);
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent);
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--accent-dark);
    z-index: 9999;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}