/* Butter Bread Bakery - Brand Styles 2026
    Theme: Deep Slate, Logo Gold, & Butter Yellow
    Optimized for tighter, cleaner spacing.
*/

:root {
    --deep-slate: #2c3e50;
    --soft-slate: #34495e;
    --logo-gold: #d4af37;
    --butter-yellow: #fff9e6;
    --creamy-white: #fffdf9;
    --pure-white: #ffffff;
    --transition: all 0.3s ease; /* Slightly faster transition */
}

/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--butter-yellow);
    font-family: 'Fredoka', sans-serif;
    color: var(--deep-slate);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Navigation - Scaled Down */
.navbar {
    background-color: var(--deep-slate);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--logo-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img-nav {
    height: 65px; /* Reduced from 90px */
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Slightly smaller */
    transition: var(--transition);
}

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

/* Hero Section - Balanced Proportions */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 10%;
    gap: 60px;
    min-height: 70vh; /* Reduced height */
}

.main-page-logo {
    width: 100%;
    max-width: 380px; /* Reduced from 480px */
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3.2rem; /* Reduced from 4rem */
    line-height: 1.1;
    margin-bottom: 15px;
}

.highlight {
    color: var(--logo-gold);
}

.cta-btn {
    display: inline-block;
    background-color: var(--deep-slate);
    color: var(--logo-gold);
    padding: 14px 32px; /* Thinner button */
    border: 2px solid var(--logo-gold);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: var(--transition);
}

.cta-btn:hover {
    background-color: var(--logo-gold);
    color: var(--deep-slate);
    transform: translateY(-3px);
}

/* Menu Grid - More Compact */
.gallery-section {
    padding: 60px 5%;
    text-align: center;
}

.section-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: transparent !important;
    border: 2px dashed var(--soft-slate);
    border-radius: 25px;
    padding: 20px;
    width: 300px; /* Reduced from 350px */
}

.card img {
    width: 100%;
    height: 200px; /* Reduced height */
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* Quote Form - Tightened UI */
#quote {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.form-container {
    background: transparent !important;
    max-width: 650px; /* Thinner form */
    width: 100%;
    padding: 50px 40px;
    border: 2px dashed var(--soft-slate);
    border-radius: 40px;
    text-align: center;
}

.form-header h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px; /* Reduced spacing */
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-weight: 600;
    margin-left: 8px;
    margin-bottom: 6px;
    display: block;
    font-size: 0.95rem;
}

/* Standardized Input Sizes */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="date"],
select, 
textarea {
    width: 100%;
    padding: 14px 18px; /* Balanced padding */
    border-radius: 15px; /* Less aggressive roundness */
    border: 2px solid #e0d8c0;
    background-color: var(--creamy-white);
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="date"] {
    min-height: 52px; /* Adjusted for smaller padding */
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--logo-gold);
    background-color: var(--pure-white);
}

/* Range Slider */
.range-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--logo-gold);
}

output {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: var(--logo-gold);
    min-width: 30px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--deep-slate);
    color: var(--logo-gold);
    border: 2px solid var(--logo-gold);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--logo-gold);
    color: var(--deep-slate);
}

/* Footer */
footer {
    background-color: var(--deep-slate);
    color: var(--pure-white);
    padding: 50px 20px;
    text-align: center;
    border-top: 3px solid var(--logo-gold);
}

footer img {
    height: 70px; /* Reduced from 120px */
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .main-page-logo { max-width: 280px; }
    .hero-content h1 { font-size: 2.5rem; }
    .name-row { grid-template-columns: 1fr; }
    .navbar { padding: 10px 20px; }
    .form-container { padding: 30px 20px; }
}
/* Match the Gold Pill Button Style */
.image-upload-btn {
    display: inline-block;
    background-color: var(--logo-gold);
    color: var(--deep-slate);
    padding: 16px 32px;
    border: 2px solid var(--logo-gold);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Fredoka', sans-serif;
}

.image-upload-btn:hover {
    background-color: transparent;
    color: var(--logo-gold);
    transform: translateY(-2px);
}

.custom-upload-container {
    display: flex;
    flex-direction: column; /* Stacked looks cleaner for large pill buttons */
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.file-name-display {
    font-size: 0.9rem;
    color: var(--soft-slate);
    font-weight: 500;
}
/* Layout Wrapper */
.main-wrapper {
    display: flex;
    gap: 30px;
    padding: 20px;
    align-items: flex-start;
}

.table-content { flex: 3; min-width: 0; } /* Takes 75% of space */
.admin-sidebar { flex: 1; min-width: 300px; } /* Fixed sidebar feel */

.calendar-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9d8a6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-nav-btn {
    text-decoration: none;
    color: var(--logo-gold);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--bakery-cream);
    transition: background 0.2s;
}

.cal-nav-btn:hover {
    background: #f3e9c8;
}

/* The Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.cal-day-head {
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: bold;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
}

.cal-day:hover {
    background: var(--bakery-cream);
    border-color: var(--logo-gold);
    transform: translateY(-2px);
}

/* Special States */
.cal-day.has-order {
    background: #fffdf5;
    border: 1.5px solid var(--logo-gold);
}

.cal-day.today {
    background: var(--deep-slate);
    color: white;
    border: none;
}

.cal-day.today .day-num {
    color: white;
}

.day-num {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--deep-slate);
}

.order-dot {
    width: 6px;
    height: 6px;
    background: var(--logo-gold);
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
}

:root {
    --logo-gold: #d4af37;
    --deep-slate: #2c3e50;
    --bakery-cream: #fffcf5;
    --border-light: #edf2f7;
}

/* Main Layout Wrapper */
.main-wrapper {
    display: flex;
    gap: 25px;
    padding: 25px;
    align-items: flex-start;
}

.table-content {
    flex: 3;
    min-width: 0; /* Prevents table from breaking flexbox */
}

.admin-sidebar {
    flex: 1;
    min-width: 320px;
    position: sticky;
    top: 20px;
}
.slider-container {
            position: relative;
            max-width: 500px;
            margin: 20px auto;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            background: #fff;
        }

        .slide {
            display: none;
            text-align: center;
            animation: fade 1.5s;
        }

        .slide img {
            width: 100%;
            height: auto;
            display: block;
            /* Ensures the image fits nicely even if it's the transparent png */
            background-color: #fafafa; 
        }

        .slide-caption {
            padding: 20px;
        }

        .slide-caption h3 {
            margin: 0;
            color: var(--logo-gold);
            font-family: 'Pacifico', cursive;
        }

        @keyframes fade {
            from { opacity: 0.4; } 
            to { opacity: 1; }
        }
        
/* --- UPDATED MENU GRID & STABLE IMAGES --- */
.gallery-section {
    padding: 60px 5%;
    text-align: center;
}

.grid {
    display: grid;
    /* This creates a standard column width that is mobile-friendly */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: transparent !important;
    border: 2px dashed var(--soft-slate);
    border-radius: 25px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Keeps all cards in a row the same height */
}

/* THE MAGIC BOX: Standardizes the image area size */
.image-container {
    width: 100%;
    padding-top: 100%; /* Forces a 1:1 Square aspect ratio */
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 15px;
    background-color: var(--creamy-white);
}

/* THE IMAGE: Scale to fit perfectly inside the box */
.stable-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 'contain' ensures the whole photo is visible. 
       Change to 'cover' if you want it to fill the whole square. */
    object-fit: contain; 
    display: block;
    transition: var(--transition);
}

.card:hover .stable-img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--deep-slate);
}

.card p {
    font-size: 0.95rem;
    color: var(--soft-slate);
}