/* =======================================================
   Maie's Salon - Theme Tokens & Base Styles
   Palette (ONLY these colors):
     Brown #7e693f · Gold #cba135 · Black #000 · White #fff
   ======================================================= */

:root {
    /* Brand palette */
    --brown:        #7e693f;
    --brown-dark:   #5e4e2f;
    --brown-light:  #9a835a;
    --gold:         #cba135;
    --gold-soft:    #e6c977;
    --black:        #000000;
    --white:        #ffffff;

    /* Neutrals (derived from brown / black mixes only) */
    --ink:          #1b1813;
    --ink-2:        #3a342a;
    --muted:        #8a8170;
    --line:         #ece6d8;
    --surface:      #ffffff;
    --bg:           #faf7f0;
    --bg-2:         #f3ecdc;

    /* Effects */
    --shadow-sm:    0 1px 2px rgba(30, 24, 12, .06);
    --shadow:       0 8px 24px rgba(30, 24, 12, .08);
    --shadow-lg:    0 20px 50px rgba(30, 24, 12, .14);
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    22px;
    --radius-pill:  999px;

    /* Typography */
    --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Layout */
    --sidebar-w:        264px;
    --sidebar-w-collapsed: 78px;
    --navbar-h:         72px;
    --content-max:      1320px;
    --transition:       240ms cubic-bezier(.4,.0,.2,1);
}

/* ------- Reset / base ------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: .2px;
    margin: 0 0 .5em;
}

a { color: var(--brown); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }

img { max-width: 100%; display: block; }
.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

::selection { background: var(--gold); color: var(--black); }

/* ------- Buttons ------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    height: 46px;
    padding: 0 1.4rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background var(--transition), color var(--transition),
                border-color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(126, 105, 63, .28);
}
.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(126, 105, 63, .35);
    color: var(--white);
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b88c1e 100%);
    color: var(--black);
    box-shadow: 0 8px 20px rgba(203, 161, 53, .35);
}
.btn-gold:hover { color: var(--black); box-shadow: 0 12px 28px rgba(203, 161, 53, .45); }

.btn-ghost {
    background: transparent;
    color: var(--brown);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--brown-dark); }

.btn-block { width: 100%; }

/* ------- Forms ------- */
.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: .45rem;
}
.form-control {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(203, 161, 53, .15);
}
.form-control::placeholder { color: #b8ad95; }

.input-group { position: relative; }
.input-group .form-control { padding-right: 3rem; }
.input-group .input-toggle {
    position: absolute;
    top: 50%; right: .7rem;
    transform: translateY(-50%);
    background: none; border: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.input-group .input-toggle:hover { background: var(--bg-2); color: var(--brown); }

/* Checkbox */
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    user-select: none;
    font-size: .9rem;
    color: var(--ink-2);
}
.checkbox input { display: none; }
.checkbox .box {
    width: 18px; height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    transition: background var(--transition), border-color var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkbox input:checked + .box {
    background: var(--brown);
    border-color: var(--brown);
}
.checkbox input:checked + .box::after {
    content: '';
    width: 5px; height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* ------- Alerts ------- */
.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
    border: 1px solid transparent;
    display: flex; align-items: center; gap: .6rem;
}
.alert-error {
    background: #fff5f0;
    border-color: #f1d2c1;
    color: #7a3b18;
}
.alert-success {
    background: #f4f8ee;
    border-color: #d7e3bf;
    color: #4d6224;
}

/* ------- Cards ------- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 .25rem;
    color: var(--ink);
}
.card-subtitle {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 1rem;
}

/* ------- Tables ------- */
.table-wrap {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.table thead th {
    background: var(--bg-2);
    color: var(--ink-2);
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .75rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}
.table tbody td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(203, 161, 53, .05); }

/* ------- Badges ------- */
.badge {
    display: inline-flex; align-items: center;
    padding: .25rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-gold  { background: rgba(203, 161, 53, .15); color: var(--brown-dark); }
.badge-brown { background: rgba(126, 105, 63, .12); color: var(--brown-dark); }
.badge-dark  { background: var(--ink);              color: var(--white); }

/* ------- Utilities ------- */
.d-flex   { display: flex; }
.flex-1   { flex: 1; }
.gap-1    { gap: .5rem; }
.gap-2    { gap: 1rem; }
.gap-3    { gap: 1.5rem; }
.ai-c     { align-items: center; }
.jc-b     { justify-content: space-between; }
.text-end { text-align: right; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
