@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #242424;
    --gold: #c9a84c;
    --gold-light: #e2c06a;
    --gold-dark: #9a7a2e;
    --red: #c0392b;
    --red-dim: rgba(192, 57, 43, 0.15);
    --white: #f5f0e8;
    --white-dim: rgba(245, 240, 232, 0.6);
    --border: rgba(201, 168, 76, 0.18);
    --border-strong: rgba(201, 168, 76, 0.45);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Barlow', sans-serif;
    --font-condensed: 'Barlow Condensed', sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── LOGIN ─── */
#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 26, 26, 0.06) 0%, transparent 50%),
        var(--black);
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--dark);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.login-logo-sub {
    font-family: var(--font-condensed);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--white-dim);
    display: block;
    margin-top: 6px;
}

.login-title {
    font-family: var(--font-condensed);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white-dim);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.login-error {
    background: var(--red-dim);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #e88;
    margin-bottom: 14px;
    display: none;
}

.login-error.show {
    display: block;
}

/* ─── FORM ELEMENTS ─── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 7px;
}

.form-input,
.form-select {
    width: 100%;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 15px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    transition: border-color var(--transition);
    min-height: 50px;
    -webkit-appearance: none;
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--dark-2);
    color: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-input::placeholder {
    color: rgba(245, 240, 232, 0.25);
}

.form-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 22px;
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 46px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-danger {
    background: var(--red-dim);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #e88;
}

.btn-danger:hover {
    background: rgba(192, 57, 43, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white-dim);
    border: none;
}

.btn-ghost:hover {
    color: var(--white);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.72rem;
    min-height: 36px;
}

.btn-full {
    width: 100%;
}

/* ─── ADMIN LAYOUT ─── */
#admin-screen {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

#admin-screen.show {
    display: flex;
}

.admin-header {
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(14px, 4vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
}

.admin-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-logo-badge {
    font-family: var(--font-condensed);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 3px 7px;
    border-radius: 100px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-week-label {
    font-family: var(--font-condensed);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.admin-main {
    flex: 1;
    padding: clamp(20px, 3vw, 40px) clamp(14px, 4vw, 36px);
    width: 100%;
    max-width: 100%;
}

/* ─── STATS ─── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.stat-card-label {
    font-family: var(--font-condensed);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 6px;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.stat-card-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--white-dim);
    margin-top: 3px;
}

/* ─── SECTION HEADER ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.section-title span {
    color: var(--gold);
}

.drag-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-condensed);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.2);
    margin-bottom: 18px;
}

/* ─── WEEK BOARD ─── */
.week-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: start;
}

.day-col {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
    min-width: 0;
}

.day-col-today {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12);
}

.day-col-header {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.day-col-today .day-col-header {
    background: rgba(201, 168, 76, 0.04);
}

.day-col-name {
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-col-today .day-col-name {
    color: var(--gold);
}

.today-pip {
    background: var(--gold);
    color: var(--black);
    font-size: 0.46rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
    border-radius: 100px;
}

.day-col-date {
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.3);
    margin-top: 2px;
}

.day-col-count {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 0.56rem;
    font-weight: 700;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 1px 7px;
    border-radius: 100px;
    margin-top: 5px;
}

.day-drop-zone {
    min-height: 70px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: background 0.2s;
}

.day-drop-zone.drag-over {
    background: rgba(201, 168, 76, 0.05);
    outline: 2px dashed rgba(201, 168, 76, 0.4);
    outline-offset: -3px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.day-empty-slot {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.18);
    text-align: center;
    padding: 18px 6px;
    font-style: italic;
}

/* ─── APPOINTMENT CARD (compact) ─── */
.appt-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 9px 8px;
    cursor: grab;
    transition: border-color var(--transition), box-shadow var(--transition);
    animation: slideIn 0.22s ease both;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.appt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-strong);
    transition: background var(--transition);
}

.appt-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.appt-card:hover::before {
    background: var(--gold);
}

.appt-card.dragging {
    opacity: 0.35;
    cursor: grabbing;
}

.appt-card.appt-new {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.04);
}

.appt-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding-left: 8px;
}

.appt-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.appt-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 8px;
    margin-top: 5px;
    gap: 4px;
}

.appt-time-small {
    font-family: var(--font-condensed);
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(245, 240, 232, 0.4);
}

.appt-price-small {
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 1px 7px;
    border-radius: 100px;
    flex-shrink: 0;
}

.appt-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.appt-btn {
    width: 26px;
    height: 26px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--white-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.appt-btn.view-btn:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.appt-btn.edit-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.appt-btn.delete-btn:hover {
    background: var(--red-dim);
    border-color: rgba(192, 57, 43, 0.5);
    color: #e88;
}

.new-dot {
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-condensed);
    font-size: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 100px;
    flex-shrink: 0;
    margin-left: 2px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── DETAIL POPUP ─── */
.detail-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
    backdrop-filter: blur(4px);
}

.detail-popup.open {
    opacity: 1;
    pointer-events: all;
}

.detail-box {
    background: var(--dark);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.detail-popup.open .detail-box {
    transform: translateY(0) scale(1);
}

.detail-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: rgba(201, 168, 76, 0.03);
}

.detail-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.detail-service {
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
}

.detail-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--white-dim);
}

.detail-row-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-row strong {
    color: var(--white);
    font-weight: 500;
}

.detail-price-big {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-align: center;
    padding: 12px;
    background: rgba(201, 168, 76, 0.06);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.detail-footer {
    padding: 14px 22px 20px;
    display: flex;
    gap: 10px;
}

.detail-footer .btn {
    flex: 1;
}

/* ─── MODAL (add/edit) ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--dark);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--dark);
    z-index: 1;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark-3);
    border: 1px solid var(--border);
    color: var(--white-dim);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--red-dim);
    color: #e88;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* ─── TIME SLOTS ─── */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    max-height: 180px;
    overflow-y: auto;
    padding: 2px;
}

.time-slot {
    padding: 9px 6px;
    text-align: center;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white-dim);
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.time-slot.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.time-slot.taken {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.taken:hover {
    border-color: var(--border);
    color: var(--white-dim);
    background: var(--dark-3);
}

.time-slots-empty {
    font-size: 0.82rem;
    color: var(--white-dim);
    text-align: center;
    padding: 16px;
    font-style: italic;
}

/* ─── CONFIRM DIALOG ─── */
.confirm-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.confirm-dialog.open {
    opacity: 1;
    pointer-events: all;
}

.confirm-box {
    background: var(--dark);
    border: 1px solid rgba(192, 57, 43, 0.5);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    transform: scale(0.96);
    transition: transform 0.2s;
}

.confirm-dialog.open .confirm-box {
    transform: scale(1);
}

.confirm-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.confirm-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.confirm-text {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--white-dim);
    margin-bottom: 22px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-actions .btn {
    flex: 1;
}

/* ─── TOAST ─── */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.toast {
    background: var(--dark-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 11px 16px;
    font-family: var(--font-condensed);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease both;
}

.toast.success {
    border-color: rgba(39, 174, 96, 0.5);
    color: #7dea9a;
}

.toast.error {
    border-color: rgba(192, 57, 43, 0.5);
    color: #e88;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── NEW BADGE ─── */
.new-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border-strong);
    color: var(--gold);
    font-family: var(--font-condensed);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    animation: pulseBadge 2s ease infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
    }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

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

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

/* Desktop wide */
@media (min-width: 1200px) {
    .week-board {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Medium desktop */
@media (max-width: 1199px) and (min-width: 769px) {
    .week-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .admin-main {
        padding: 16px 12px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .week-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .admin-week-label {
        display: none;
    }

    .drag-hint {
        display: none;
    }

    .section-header {
        gap: 8px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .admin-header {
        height: 52px;
        padding: 0 12px;
    }

    .admin-logo {
        font-size: 1.1rem;
    }

    .admin-logo-badge {
        display: none;
    }

    .admin-main {
        padding: 12px 10px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 14px 14px;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .week-board {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .day-col {
        /* horizontal scroll layout on mobile */
    }

    .day-drop-zone {
        min-height: 50px;
    }

    .modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 95vh;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .detail-popup {
        align-items: flex-end;
        padding: 0;
    }

    .detail-box {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .btn-sm {
        min-height: 40px;
        padding: 9px 14px;
    }
}

@media (max-width: 360px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ─── LOGIN EXTRAS ─── */
.login-back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.35);
    text-decoration: none;
    transition: color var(--transition);
}

.login-back-link:hover {
    color: var(--gold);
}

.login-lockout {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #e88;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.5;
}

/* ─── TIME SLOT TAKEN STYLE ─── */
.time-slot.taken {
    opacity: 0.28;
    cursor: not-allowed;
    text-decoration: line-through;
    background: rgba(255, 255, 255, 0.02);
}

.time-slot.taken:hover {
    border-color: var(--border);
    color: var(--white-dim);
    background: rgba(255, 255, 255, 0.02);
    transform: none;
}

/* ─── STATUS BADGES ─── */
.status-badge {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid;
}

.status-confirmado {
    color: #7dea9a;
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.35);
}

.status-concluido {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--border);
}

.status-cancelado {
    color: rgba(245, 240, 232, 0.35);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.status-badge-sm {
    font-family: var(--font-condensed);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 100px;
    border: 1px solid;
}

/* Card status tints */
.appt-status-concluido {
    opacity: 0.65;
}

.appt-status-cancelado {
    opacity: 0.4;
    cursor: default !important;
}

.appt-status-cancelado::before {
    background: rgba(192, 57, 43, 0.4) !important;
}

/* ─── SYNC INDICATOR ─── */
.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7dea9a;
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7dea9a;
    animation: syncPulse 2s ease infinite;
}

@keyframes syncPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ─── BOARD LOADING ─── */
.board-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.3);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── DETAIL FOOTER GRID ─── */
.detail-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 22px 20px;
}

.detail-footer-grid .btn {
    width: 100%;
    justify-content: center;
}

/* ─── EXTRA BUTTON TYPES ─── */
.btn-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #7dea9a;
}

.btn-success:hover {
    background: rgba(39, 174, 96, 0.25);
}

.btn-warning {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.35);
    color: #e8a87a;
}

.btn-warning:hover {
    background: rgba(192, 57, 43, 0.25);
}

/* ─── APPT CARD PRICE ROW ─── */
.appt-row-price {
    padding-left: 8px;
    margin-top: 2px;
}

/* ─── LOGIN EMAIL FIELD ─── */
.login-error.show {
    display: block;
}

/* ─── TOAST INFO ─── */
.toast.info {
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--gold);
}

/* ─── SPIN FOR BUTTONS ─── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── REVENUE BAR (faixa topo) ─── */
.revenue-bar {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0.06) 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    padding: 12px clamp(14px, 4vw, 36px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.revenue-bar-label {
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.revenue-bar-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.revenue-bar-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.4);
    margin-left: auto;
}

/* ─── NEXT CLIENT CARD ─── */
.stat-card-next {
    border-color: rgba(201, 168, 76, 0.4);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.stat-card-next::before {
    content: '▶';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: rgba(201, 168, 76, 0.15);
}

/* ─── PRÓXIMO CLIENTE NO CARD ─── */
.appt-next {
    border-color: rgba(201, 168, 76, 0.6) !important;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, var(--dark-2) 100%) !important;
}

.appt-next::before {
    background: var(--gold) !important;
}

.next-arrow {
    color: var(--gold);
    font-size: 0.6rem;
    animation: arrowPulse 1.5s ease infinite;
    margin-right: 2px;
    flex-shrink: 0;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(2px);
    }
}

/* ─── WHATSAPP BUTTON ─── */
.appt-btn.wa-btn,
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    text-decoration: none;
}

.appt-btn.wa-btn:hover,
.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.6);
}

/* ─── DETAIL FOOTER WA BUTTON (full width) ─── */
.detail-footer-grid .btn-whatsapp {
    grid-column: 1 / -1;
    justify-content: center;
}

/* ─── LEGIBILIDADE: serviço no card ─── */
.appt-service-small {
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(245, 240, 232, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 8px;
    margin-top: 1px;
}

@media (max-width: 480px) {
    .revenue-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .revenue-bar-value {
        font-size: 1.2rem;
    }

    .revenue-bar-sub {
        margin-left: 0;
        width: 100%;
    }
}

/* ─── REMINDER BUTTON ─── */
.btn-reminder {
    background: rgba(100, 149, 237, 0.1);
    border: 1px solid rgba(100, 149, 237, 0.3);
    color: #7ba7f7;
    text-decoration: none;
}

.btn-reminder:hover {
    background: rgba(100, 149, 237, 0.2);
    border-color: rgba(100, 149, 237, 0.55);
}

/* ─── CANCELAMENTOS STAT CARD ─── */
.stat-card-alert {
    transition: border-color var(--transition), background var(--transition);
}

/* ─── WEEK TABS ─── */
.week-tabs {
    display: flex;
    gap: 4px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
}

.week-tab {
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--white-dim);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

.week-tab:hover {
    color: var(--white);
}

.week-tab-active {
    background: var(--dark);
    color: var(--gold);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.week-tab-badge {
    background: var(--gold);
    color: var(--black);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 100px;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .week-tabs {
        width: 100%;
    }

    .week-tab {
        flex: 1;
        justify-content: center;
    }
}

/* ════════════════════════════════════════
   AVISO ADMIN PANEL
════════════════════════════════════════ */
.aviso-admin-panel {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.aviso-admin-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.aviso-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.aviso-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s;
}

.aviso-dot-off {
    background: rgba(245, 240, 232, 0.15);
}

.aviso-dot-on {
    animation: dotPulse 2s ease infinite;
}

.aviso-dot-info {
    background: #3b8bd4;
}

.aviso-dot-atencao {
    background: var(--gold);
}

.aviso-dot-fechado {
    background: var(--red);
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.aviso-status-text {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--white-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Aviso modal fields ── */
.aviso-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 14px;
    border-bottom: 1px solid var(--border);
}

.aviso-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.aviso-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.aviso-switch-track {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: background 0.25s, border-color 0.25s;
    position: relative;
}

.aviso-switch input:checked+.aviso-switch-track {
    background: rgba(39, 174, 96, 0.25);
    border-color: rgba(39, 174, 96, 0.6);
}

.aviso-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(245, 240, 232, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}

.aviso-switch input:checked~.aviso-switch-track .aviso-switch-knob {
    transform: translateX(20px);
    background: #7dea9a;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-2 .form-group {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .aviso-admin-panel {
        padding: 12px 14px;
    }

    .aviso-status-text {
        font-size: 0.75rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════
   NOTIFICAÇÃO — BOTÃO NO HEADER
════════════════════════════════════════════════════ */
.btn-notif {
    position: relative;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-notif:hover {
    border-color: var(--border-strong);
    color: var(--white);
}

.btn-notif.notif-active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.notif-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    border: 1.5px solid var(--dark);
    animation: dotPulse 2s ease infinite;
}

/* ════════════════════════════════════════════════════
   MOBILE BOTTOM NAV — apenas em telas ≤ 768px
════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Empurrar conteúdo para cima do nav */
    #admin-screen {
        padding-bottom: 72px;
    }

    .admin-main {
        padding-bottom: 16px;
    }

    /* Esconder elementos redundantes no mobile */
    .admin-header .btn-config,
    .admin-header>.admin-header-right>a[href="index.html"],
    .admin-header>.admin-header-right>a[href="config.html"],
    .admin-header .btn-outline:not(.btn-notif) {
        display: none !important;
    }

    /* Sidebar stats no header mobile — compact */
    .stats-bar {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        grid-template-columns: unset;
    }

    .stats-bar::-webkit-scrollbar {
        display: none;
    }

    .stat-card {
        flex-shrink: 0;
        scroll-snap-align: start;
        min-width: 140px;
        max-width: 160px;
        padding: 14px 16px;
    }

    .stat-card-value {
        font-size: 1.6rem;
    }

    /* Esconder aviso-admin-panel no mobile (gerenciado via bottom nav) */
    .aviso-admin-panel {
        display: none;
    }

    /* Week board mobile: horizontal swipe por dia */
    .week-board {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        grid-template-columns: unset !important;
        scrollbar-width: none;
    }

    .week-board::-webkit-scrollbar {
        display: none;
    }

    .day-col {
        flex-shrink: 0;
        scroll-snap-align: start;
        width: calc(100vw - 40px) !important;
        max-width: 420px;
    }

    /* Day-col today: maior e em destaque */
    .day-col-today {
        order: -1;
        /* Hoje aparece primeiro */
    }

    /* Week tabs: pills scroll horizontal */
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .week-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .week-tabs::-webkit-scrollbar {
        display: none;
    }

    .week-tab {
        flex: 1;
        justify-content: center;
        white-space: nowrap;
    }

    /* Drag hint escondido no mobile */
    .drag-hint {
        display: none;
    }

    /* Section header compacto */
    .section-header h1.section-title {
        font-size: 1.2rem;
    }

    /* Revenue bar compacto */
    .revenue-bar {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .revenue-bar-value {
        font-size: 1.2rem;
    }

    .revenue-bar-sub {
        display: none;
    }
}

/* ════════════════════════════════════════════════════
   MOBILE BOTTOM NAV — barra fixa
════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
    /* hidden by default, shown only on mobile */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--dark);
        border-top: 1px solid var(--border);
        padding: 0 4px env(safe-area-inset-bottom, 8px);
        height: 64px;
        align-items: center;
        justify-content: space-around;
        gap: 2px;
    }
}

.mbn-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 48px;
    height: 56px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: rgba(245, 240, 232, 0.4);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    font-family: var(--font-condensed);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mbn-btn:hover {
    color: var(--white-dim);
}

.mbn-btn.mbn-active {
    color: var(--gold);
}

/* FAB central — novo agendamento */
.mbn-btn.mbn-fab {
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: -10px;
}

.mbn-btn.mbn-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.55);
}

.mbn-btn.mbn-fab:active {
    transform: scale(0.95);
}

/* ════════════════════════════════════════════════════
   MOBILE STATS SHEET (bottom sheet)
════════════════════════════════════════════════════ */
.mobile-stats-sheet {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 190;
    background: var(--dark);
    border-top: 1px solid var(--border-strong);
    border-radius: 16px 16px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-stats-sheet.mss-open {
    transform: translateY(0);
}

.mss-handle {
    width: 36px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    margin: 10px auto 0;
}

.mss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 10px;
    border-bottom: 1px solid var(--border);
}

.mss-title {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.mss-close {
    background: none;
    border: none;
    color: var(--white-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.mss-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    margin: 10px 16px 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mss-stat {
    background: var(--dark-2);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mss-stat:last-child:nth-child(odd) {
    grid-column: span 2;
}

.mss-stat-label {
    font-family: var(--font-condensed);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.mss-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.mss-stat-value.mss-gold {
    color: var(--gold);
}

.mss-stat-value.mss-red {
    color: #e88;
}

.mss-stat-value.mss-sm {
    font-size: 1.1rem;
    line-height: 1.3;
    padding-top: 2px;
}

.mss-stat-sub {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--white-dim);
}

/* Overlay escurece fundo quando sheet aberto */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 185;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.overlay-visible {
    opacity: 1;
}

/* ════════════════════════════════════════════════════
   MOBILE — pequenos ajustes extras
════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .admin-header {
        height: 52px;
        padding: 0 12px;
    }

    .admin-logo {
        font-size: 1.1rem;
    }

    .admin-logo-badge {
        display: none;
    }

    .admin-main {
        padding: 12px 10px 16px;
    }

    /* Appt card mais espaçoso no mobile */
    .appt-card {
        padding: 12px 10px;
    }

    .appt-name {
        font-size: 0.9rem;
    }

    /* Day col header mais clean no mobile */
    .day-col-header {
        padding: 14px 14px 12px;
    }

    .day-col-count {
        font-size: 0.65rem;
        padding: 3px 9px;
    }
}