:root {
    --primary-pink: #f8bbd0;     /* Soft Pink */
    --deep-rose: #ad1457;        /* Deep Rose / Accent */
    --luxury-gold: #d4af37;      /* Champagne Gold */
    --bg-ivory: #fffdfa;         /* Ivory White */
    --text-dark: #4a4a4a;
    --text-light: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Playfair Display', serif; /* Elegant Serif */
    background-color: var(--bg-ivory);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background-color: white;
    padding: 1.5rem 5%;
    border-bottom: 2px solid var(--primary-pink);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-rose);
    text-transform: uppercase;
    letter-spacing: 3px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--luxury-gold);
}

.btn-nav {
    background-color: var(--deep-rose);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

main {
    padding: 3rem 5%;
    min-height: 80vh;
}

.hero {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(rgba(248, 187, 208, 0.4), rgba(248, 187, 208, 0.4)), 
                url('https://images.unsplash.com/photo-1518131091195-42982d3bc3ba?auto=format&fit=crop&q=80&w=1200'); /* Placeholder bg */
    background-size: cover;
    background-position: center;
    color: var(--deep-rose);
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid var(--primary-pink);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px white;
}

.btn {
    display: inline-block;
    background-color: var(--luxury-gold);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--deep-rose);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(173, 20, 87, 0.3);
}

.gown-card {
    background: white;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #fef1f5;
    display: flex;
    flex-direction: column;
}

.gown-card:hover {
    transform: translateY(-5px);
}

.gown-card-image {
    width: 100%;
    aspect-ratio: 3 / 4; /* Maintain a 3:4 aspect ratio */
    object-fit: contain;
    background: linear-gradient(135deg, #fff1f5, #f8bbd0);
    object-position: center;
}

.gown-image-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #fff1f5, #f8bbd0);
    flex-shrink: 0;
}

.gown-card h3 {
    margin-top: 1rem;
    color: var(--deep-rose);
}

.price {
    color: var(--luxury-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Gown Grid - Responsive */
.gown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .gown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gown-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Admin Dashboard Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--primary-pink);
    color: var(--deep-rose);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-reserved { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-unavailable { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-confirmed { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.status-completed { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-cancelled { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.btn-action {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.8;
}


.description {
    margin-bottom: 2rem;
}

.details {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.details p {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
    margin-top: 4rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Form Styles */
.content-section {
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #dddddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: auto;
}

.border-top {
    border-top: 1px solid #dee2e6;
    max-width: 600px;
    margin: 0 auto;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.pt-3 {
    padding-top: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-muted {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem 3%;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav ul li {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    .gown-detail {
        flex-direction: column;
        gap: 2rem;
    }

    .gown-image-large-placeholder {
        min-width: 100%;
        height: 400px;
    }

    .gown-info h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    nav ul {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fff1f5, #f8bbd0);
    height: 500px; /* Fixed height for carousel container */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%; /* Fill parent carousel height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
