/* General Reset and Font */
:root {
    --bg-color: #0f172a; /* Elegant Dark Slate */
    --text-color: #f8fafc;
    --accent-color: #14b8a6; /* Teal Accent */
    --accent-hover: #0d9488;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Carousel / Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4); /* Dimmer overlay */
}

/* Swiper Hero Integration */
.hero-swiper {
    width: 100%;
    height: 70vh;
}

.swiper-slide.hero {
    height: 100%;
}

.hero-content h1 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}
.btn-outline:hover, .active-filter {
    background: var(--accent-color) !important;
    color: #fff !important;
}

/* Grid System */
.container {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Painting Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    margin-top: auto;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
}

/* Dropdown Visibility Fix */
select.form-control {
    background-color: #1e293b; /* Solid fallback for dropdowns */
    cursor: pointer;
}

select.form-control option {
    background-color: #0f172a; /* Dark background */
    color: #f8fafc; /* Light text */
}

/* Ensure legible focus for all inputs */
.form-control:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Special case for browser-renders of selects */
select.form-control:focus {
    color: white;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(255,255,255,0.05);
}

/* Hide mobile elements by default */
.close-drawer, .menu-toggle, .mobile-admin-toggle {
    display: none;
}

/* --- RICH MOBILE OVERHAUL v2 --- */

/* Overlay for dimming background */
.ui-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphic Drawer Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        font-size: 1.2rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px; /* Slide-in from right */
        width: 280px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 40px 30px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 100;
        display: flex;
        flex-direction: column;
        border-left: 1px solid var(--border-color);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 50px;
    }

    nav a {
        font-size: 1.3rem;
        font-weight: 500;
        display: block;
        padding: 10px 0;
    }

    .close-drawer {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: #94a3b8;
        display: block !important;
    }

    /* Admin Sidebar Rich View */
    .admin-sidebar {
        position: fixed;
        left: -280px !important;
        top: 0;
        width: 280px !important;
        height: 100vh;
        z-index: 101 !important;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
    }

    .admin-sidebar.active {
        left: 0 !important;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 20px 15px !important;
        overflow-x: hidden;
    }

    /* Responsive Tables */
    .admin-table-wrapper {
        width: 100%;
        overflow-x: auto;
        margin-top: 1rem;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .admin-table {
        min-width: 600px; /* Force scroll for richness */
    }

    .mobile-admin-toggle {
        display: flex !important;
        align-items: center;
        gap: 10px;
        background: var(--accent-color);
        border: none;
        padding: 12px 20px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 0.9rem;
        margin-bottom: 25px;
        box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.3);
    }
}


