/* Premium Luxury Marketplace - Ultra-Modern Design */

/* IMPORTS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Premium Color Palette */
    --charcoal: #1C1C1C;
    --charcoal-light: #2A2A2A;
    --gold: #FFD700;
    --gold-dark: #E6C200;
    --white: #FFFFFF;
    --soft-gray: #F5F5F5;
    --silver: #C0C0C0;
    --text-dark: #1C1C1C;
    --text-light: #6B6B6B;
    --text-lighter: #999999;

    /* Premium Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;

    /* Luxury Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-charcoal: linear-gradient(135deg, #1C1C1C 0%, #2A2A2A 100%);
    --gradient-subtle: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.container-fluid {
    width: 100%;
    padding: 0 3rem;
}

/* HEADER - PREMIUM CHARCOAL */
.header {
    background: var(--gradient-charcoal);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a:hover::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

/* TABS - LUXURY DESIGN */
.tabs {
    background: var(--white);
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    gap: 0;
    list-style: none;
    justify-content: center;
}

.tab-button {
    padding: 2rem 4rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition-smooth);
    position: relative;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
}

.tab-button.active {
    color: var(--charcoal);
    font-weight: 700;
}

.tab-button.active::before {
    transform: translateX(-50%) scaleX(1);
}

.tab-button:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    padding: 4rem 0;
    animation: fadeIn 0.6s;
}

.tab-content.active {
    display: block;
}

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

/* GRID - LUXURY CARDS */
.grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* PREMIUM CARDS WITH 3D EFFECT */
.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

.product-card {
    background: var(--gradient-subtle);
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--white);
}

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

.product-card:hover .card-image {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-gold);
    color: var(--charcoal);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
    z-index: 10;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: rgba(245, 245, 245, 0.5);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-weight: 500;
    text-transform: uppercase;
}

/* LUXURY BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-charcoal);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: var(--charcoal);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--charcoal);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: var(--white);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.85rem; }
.btn-lg { padding: 1.25rem 3rem; font-size: 1.1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-primary { background: var(--gradient-charcoal); color: var(--gold); }
.badge-success { background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: var(--white); }
.badge-danger { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); color: var(--white); }
.badge-warning { background: var(--gradient-gold); color: var(--charcoal); }
.badge-secondary { background: var(--soft-gray); color: var(--text-light); }

.stock-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* FORMS */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 12px;
    background: var(--white);
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ALERTS */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #ECFDF5 100%);
    color: #065F46;
    border-left-color: #10B981;
}

.alert-error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FEF2F2 100%);
    color: #991B1B;
    border-left-color: #EF4444;
}

.alert-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
    color: #92400E;
    border-left-color: #F59E0B;
}

.alert-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    color: #1E40AF;
    border-left-color: #3B82F6;
}

/* TABLES */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

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

table th,
table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

table th {
    background: var(--gradient-subtle);
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    font-size: 0.85rem;
}

table tr {
    transition: var(--transition-smooth);
}

table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

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

/* ADMIN LAYOUT */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--soft-gray);
}

.admin-sidebar {
    width: 280px;
    background: var(--gradient-charcoal);
    color: var(--white);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.admin-sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.admin-sidebar-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-sidebar-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.admin-nav {
    list-style: none;
    padding: 1.5rem 0;
}

.admin-nav a {
    display: flex;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
}

.admin-main {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
    width: calc(100% - 280px);
}

.admin-header {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--charcoal);
}

/* STATS CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--gradient-subtle);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

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

.stat-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card-icon {
    font-size: 2rem;
}

.stat-card-value {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--charcoal);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    background: var(--gradient-charcoal);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    z-index: 1600;
    min-width: 50px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: var(--gold);
    color: var(--charcoal);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* LOGIN PAGE */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-charcoal);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.login-box {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 3.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--charcoal);
}

.login-header p {
    color: var(--text-light);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s;
}

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

.modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--charcoal);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
}

.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(192, 192, 192, 0.15);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--soft-gray);
    border-radius: 0 0 24px 24px;
}

/* IMAGE GALLERY */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.image-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(192, 192, 192, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.image-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.image-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery-item.primary {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition-smooth);
    font-weight: 600;
}

.pagination a:hover {
    background: var(--gradient-gold);
    color: var(--charcoal);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--gradient-gold);
    color: var(--charcoal);
    border-color: var(--gold);
}

/* HERO SECTION */
.hero-section {
    background: var(--gradient-charcoal);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: var(--font-serif);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* FOOTER */
footer {
    background: var(--gradient-charcoal);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

footer p {
    font-weight: 300;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; align-items: center; }
.flex-gap-1 { gap: 0.5rem; }
.flex-gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .admin-sidebar { width: 240px; }
    .admin-main { margin-left: 240px; width: calc(100% - 240px); }
    h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .container, .container-fluid { padding: 0 1.5rem; }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1550;
    }
    
    .admin-sidebar.mobile-active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 2rem 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-menu { display: none; }
    
    .tab-button { padding: 1.5rem 2rem; font-size: 1rem; }
    
    .grid, .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .stats-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.25rem; }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
        padding: 1.5rem !important;
    }
    
    .admin-header h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .admin-header .flex {
        width: 100%;
        justify-content: flex-start !important;
    }
    
    .admin-header .btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card-value {
        font-size: 2rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .table-container {
        font-size: 0.85rem;
    }
    
    table th, table td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 1rem !important;
        max-height: 85vh !important;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .container, .container-fluid { padding: 0 1rem; }
    .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .btn { padding: 0.85rem 1.75rem; font-size: 0.875rem; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--soft-gray); }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
