/* Barbearia - Dark & Masculine Theme */
:root {
    /* Color Channels (HSL) */
    --background: 0 0% 7%;
    --foreground: 45 10% 95%;
    /* Lightened from 90% */

    --card: 0 0% 10%;
    --card-foreground: 45 10% 95%;

    --primary: 43 74% 49%;
    /* Gold */
    --primary-foreground: 0 0% 5%;

    --secondary: 0 0% 15%;
    --secondary-foreground: 45 10% 95%;
    /* Lightened */

    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 75%;
    /* Significantly lightened from 55% */

    --border: 0 0% 20%;
    --input: 0 0% 20%;

    --gold: 43 74% 49%;
    --gold-light: 43 74% 60%;
    --gold-dark: 43 74% 35%;

    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: hsl(var(--foreground));
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-gold {
    color: hsl(var(--gold));
}

.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: hsl(var(--muted-foreground)) !important;
}

/* Navbar */
.navbar {
    background-color: hsl(var(--background)) !important;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
}

.navbar-brand {
    color: hsl(var(--foreground)) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: hsl(var(--gold));
    margin-right: 0.5rem;
}

/* Main Layout */
main {
    flex: 1;
    padding: 3rem 0;
}

/* Cards */
.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.card-header,
.card-footer {
    background-color: transparent;
    border-color: hsl(var(--border));
}

/* Form Elements */
.form-control,
.form-select {
    background-color: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: hsl(var(--input));
    border-color: hsl(var(--gold));
    box-shadow: 0 0 0 2px hsl(var(--gold) / 0.2);
    color: hsl(var(--foreground));
}

.form-label {
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    display: block;
}

/* Checkbox Customization (Fix for user request) */
.form-check-input:checked {
    background-color: hsl(var(--gold));
    border-color: hsl(var(--gold));
}

.form-check-input:focus {
    border-color: hsl(var(--gold));
    box-shadow: 0 0 0 0.25rem hsl(var(--gold) / 0.25);
}

/* Calendar/Date Input Customization */
input[type="date"] {
    color-scheme: dark;
}

/* Buttons */
.btn-primary,
.btn-success {
    background-color: hsl(var(--gold));
    border-color: hsl(var(--gold));
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover,
.btn-success:hover {
    background-color: hsl(var(--gold-light));
    border-color: hsl(var(--gold-light));
    color: hsl(var(--primary-foreground));
    transform: translateY(-1px);
}

/* Override Time Slot Buttons (fixing the blue buttons issue) */
.btn-outline-primary {
    color: hsl(var(--gold));
    border-color: hsl(var(--gold));
    background-color: transparent;
    /* or use var(--bs-tertiary-color) if intended */
}

.btn-outline-primary:hover,
.btn-check:checked+.btn-outline-primary {
    background-color: hsl(var(--gold));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--gold));
}

.btn-outline-gold {
    border: 1px solid hsl(var(--gold));
    color: hsl(var(--gold));
    background: transparent;
}

.btn-outline-gold:hover,
.btn-check:checked+.btn-outline-gold {
    background-color: hsl(var(--gold));
    color: hsl(var(--primary-foreground));
}

/* Time Slots */
.time-slot {
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: hsl(var(--gold));
    background-color: hsl(var(--input));
}

.time-slot.selected {
    background-color: hsl(var(--gold));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--gold));
    font-weight: bold;
}

/* Modal */
.modal-content {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.modal-header {
    border-bottom: 1px solid hsl(var(--border));
}

.modal-footer {
    border-top: 1px solid hsl(var(--border));
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
footer {
    background-color: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: hsl(var(--foreground));
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: hsl(var(--gold));
}

.map-container iframe {
    width: 100%;
    border-radius: 0.75rem;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--gold-light));
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}