:root {
    /* aqui eu deixei as cores principais do sistema para facilitar quando eu quiser mudar depois */
    --primary: #ef6f91;
    --primary-dark: #da5d7e;
    --accent: #2e2e48;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --text: #2f2430;
    --muted: #6b5a65;
    --border: #dfd4d9;
    --shadow: 0 18px 45px rgba(79, 32, 49, 0.18);
    --soft-pink: #fff7fa;
    --soft-pink-strong: #fff0f5;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

body {
    /* fundo geral do projeto */
    margin: 0;
    min-height: 100vh;
    background-image: linear-gradient(rgba(69, 31, 44, 0.42), rgba(69, 31, 44, 0.42)), url("../img/ChatGPT Image 23 de mar. de 2026, 11_54_16.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.auth-page,
.dashboard-page {
    min-height: 100vh;
}

.auth-page {
    /* organizacao das telas de login, cadastro e recuperacao */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 32px 20px;
}

.hero-copy {
    max-width: 420px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-logo {
    width: min(100%, 220px);
    max-height: 170px;
    display: block;
    margin: 0 0 10px;
    object-fit: contain;
    transform: perspective(220px) rotateX(10deg) translateY(-2px);
    filter: brightness(1.08) contrast(1.18) saturate(1.06) drop-shadow(0 2px 0 rgba(255, 244, 247, 0.95)) drop-shadow(0 10px 16px rgba(103, 54, 69, 0.2)) drop-shadow(0 18px 24px rgba(103, 54, 69, 0.14));
}

.hero-copy h1 {
    margin-bottom: 8px;
}

.hero-copy p {
    max-width: 360px;
    margin-bottom: 0;
}

h1,
h2,
legend {
    margin: 0 0 12px;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35);
}

h2 {
    font-size: 1.6rem;
}

p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.hero-copy p,
.calendar-header p {
    color: #fff;
}

.card {
    /* caixinha branca usada nas telas de autenticacao */
    width: min(100%, 430px);
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.auth-form .btn {
    border-radius: 12px;
}

.auth-form {
    padding: 0;
}

fieldset {
    border: none;
    margin: 0;
    padding: 28px;
}

legend {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

input,
button,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.95rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #967c87;
}

input:focus,
button:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid rgba(233, 75, 106, 0.35);
    outline-offset: 2px;
    border-color: rgba(239, 111, 145, 0.55);
    box-shadow: 0 0 0 5px rgba(239, 111, 145, 0.1);
}

.btn {
    /* estilo padrao dos botoes principais */
    margin-bottom: 0;
    background-color: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(233, 75, 106, 0.28);
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(233, 75, 106, 0.3);
}

.btn:active {
    transform: translateY(1px);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    padding-left: 2.9rem;
}

.input-group .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transform: translateY(-50%);
}

.rem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0.5rem 0 1.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
}

.forgot-password,
.register-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.forgot-password:hover,
.register-text a:hover {
    text-decoration: underline;
}

.register-text {
    margin: 0;
    text-align: center;
    color: var(--text);
}

.plans-box {
    margin: 8px 0 16px;
    padding: 16px;
    border: 1px solid #f0d7df;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff9fb, #fff4f8);
}

.plans-title {
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 700;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.plan-option input {
    width: auto;
    margin: 0;
}

.plan-option span {
    font-size: 0.95rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
    width: 100%;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    margin: 0 10px;
    font-size: 12px;
    color: var(--muted);
}

#cadastro {
    padding: 0;
}

.dashboard-page {
    /* fundo do dashboard e do admin */
    background-image: linear-gradient(rgba(241, 171, 189, 0.12), rgba(246, 219, 228, 0.18)), url("../img/ChatGPT Image 23 de mar. de 2026, 11_54_16.png");
    background-position: center top;
    background-size: cover;
    color: var(--text);
    padding: 46px 24px 40px;
}

.dashboard-shell {
    width: min(835px, 100%);
    margin: 0 auto;
}

.dashboard-header {
    /* topo rosa principal */
    width: 100%;
    background: linear-gradient(180deg, #f47f9d, #ec7292);
    border-radius: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 13px 20px;
    box-sizing: border-box;
    box-shadow: 0 12px 26px rgba(181, 62, 91, 0.16);
    column-gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.header-share-btn {
    width: auto;
    margin: 0;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.header-share-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.topbar-links span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.header-logo {
    width: 88px;
    height: 62px;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    transform: perspective(180px) rotateX(8deg) translateY(-1px);
    filter: brightness(1.12) contrast(1.22) saturate(1.1) drop-shadow(0 2px 0 rgba(255, 244, 247, 0.95)) drop-shadow(0 8px 10px rgba(120, 60, 78, 0.22)) drop-shadow(0 14px 18px rgba(120, 60, 78, 0.18));
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header-title-mobile {
    display: none;
}

.menu {
    /* menu superior em linha */
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.menu li {
    min-width: auto;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.menu li:hover,
.menu .active {
    color: white;
    background: #212b59;
    transform: translateY(-1px);
}

.logout {
    width: auto;
    margin: 0;
    padding: 9px 18px;
    background: linear-gradient(180deg, #ff847d, #ff736c);
    color: white;
    border: 1px solid rgba(115, 20, 36, 0.2);
    box-shadow: 0 8px 16px rgba(115, 20, 36, 0.14);
    border-radius: 10px;
    font-size: 0.95rem;
}

.dashboard-container {
    width: 100%;
    margin: 8px auto 0;
}

.dashboard-card {
    /* bloco principal branco que segura o conteudo */
    display: block;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 36px rgba(191, 86, 111, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.72);
    max-width: 100%;
    overflow-x: auto;
}

.calendar-panel h2,
.dashboard-card h2 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #503844;
}

.calendar-panel {
    /* painel do calendario */
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 12px 28px rgba(247, 99, 142, 0.16);
}

#agendamento {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#client-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#agendamento input,
#agendamento select,
#client-form input,
.settings-form input,
.settings-form select,
.settings-form textarea {
    border-radius: 5px;
    border: 1px solid #d2d2d2;
    background: #fff;
    margin-bottom: 0;
    font-size: 0.95rem;
    height: 38px;
    color: #555;
    padding: 0.7rem 0.8rem;
}

.settings-form textarea {
    min-height: 110px;
    resize: vertical;
    height: auto;
}

#agendamento .btn {
    width: 100%;
    margin-top: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(115, 20, 36, 0.18);
    color: #111;
    font-size: 0.95rem;
    height: 42px;
}

#client-form .btn {
    width: 100%;
    margin-top: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(115, 20, 36, 0.18);
    color: #111;
    font-size: 0.95rem;
    height: 42px;
}


/* --- Barra de acoes rapidas acima do calendario --- */
.calendar-actions-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.cal-action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: auto;
    margin: 0;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(233, 75, 106, 0.22);
    transition: background-color 0.2s, transform 0.15s;
}

.cal-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cal-action-btn:active {
    transform: translateY(0);
}

.cal-action-share {
    background: white;
    color: var(--primary);
    border: 1.5px solid #f0c4d0;
    box-shadow: 0 4px 12px rgba(233, 75, 106, 0.08);
}

.cal-action-share:hover {
    background: #fff5f8;
    color: var(--primary-dark);
}

.cal-action-icon {
    font-size: 1rem;
    line-height: 1;
}

/* cursor de ponteiro nos slots vazios do calendario */
.fc-timegrid-slot-lane {
    cursor: pointer;
}

.fc-timegrid-slot-lane:hover {
    background: rgba(239, 111, 145, 0.06) !important;
}

.calendar-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.calendar-clock {
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff4f7;
    border: 1px solid #f0d7df;
    color: #9d4d65;
    font-weight: 700;
    font-size: 0.9rem;
}

.calendar-nav {
    display: flex;
    gap: 2px;
}

.calendar-arrow {
    width: 42px;
    height: 37px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 1.9rem;
    line-height: 1;
    box-shadow: none;
}

.calendar-topbar h2 {
    margin: 0;
    font-size: 1.08rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #111;
    text-transform: lowercase;
}

.calendar-section {
    background: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

#calendar {
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 320px;
}

.fc {
    --fc-border-color: #ece4de;
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: #faf8f6;
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #ece4de;
}

.fc .fc-toolbar.fc-header-toolbar {
    display: none;
}

.fc-col-header-cell {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.fc .fc-col-header-cell-cushion {
    color: white;
    padding: 4px 4px;
    font-size: 0.84rem;
    font-weight: 700;
}

.fc-timegrid-slot {
    height: 31px;
}

.fc-timegrid-slot-label-cushion,
.fc-timegrid-axis-cushion {
    color: #111;
    font-size: 0.78rem;
}

.fc-timegrid-slot-lane {
    background: #fff;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc .fc-scrollgrid {
    border-color: #d9d9d9;
}

.fc .fc-timegrid-slot-label {
    vertical-align: top;
}

.fc .fc-timegrid-axis-cushion {
    padding-top: 2px;
}

.fc .fc-resource-timeline-divider,
.fc .fc-timegrid-divider {
    padding: 0;
}

.fc-day-today {
    background: rgba(233, 75, 106, 0.06) !important;
}

.fc-event {
    border-radius: 6px;
    border: none;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 4px;
}

.fc-license-message {
    display: none;
}

.booking-drawer {
    /* drawer lateral usado no dashboard e admin */
    position: fixed;
    top: 0;
    right: 0;
    width: min(390px, 100%);
    height: 100vh;
    padding: 18px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 30;
    pointer-events: none;
}

.booking-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.booking-drawer-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px 0 0 24px;
    padding: 24px 20px;
    box-shadow: -18px 0 38px rgba(96, 45, 60, 0.16);
    border-left: 1px solid #f0d6dd;
    backdrop-filter: blur(8px);
}

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

.drawer-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
}

.drawer-close {
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #ead0d8;
    border-radius: 10px;
    background: #fff5f8;
    color: #be4d68;
    font-size: 1.7rem;
    line-height: 1;
    box-shadow: none;
}

.header-danger-btn {
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #ffcce0;
    border-radius: 10px;
    background: #ffe6f0;
    color: #d91d4a;
    font-size: 1.3rem;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-danger-btn:hover {
    background: #ffc9da;
    border-color: #ff9aa2;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(58, 28, 39, 0.28);
    z-index: 20;
}

.settings-card {
    overflow-y: auto;
}

.settings-menu {
    /* botoes das abas dentro das configuracoes */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.settings-tab {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ead0d8;
    background: var(--soft-pink);
    color: #9d4d65;
    font-size: 0.9rem;
    box-shadow: none;
}

.settings-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.settings-form input {
    margin: 0;
}

.plan-shop {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.plan-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f0d7df;
    background: linear-gradient(180deg, #fffdfd, #fff6fa);
    box-shadow: 0 12px 24px rgba(214, 130, 157, 0.08);
}

.plan-card strong,
.plan-card span {
    display: block;
}

.plan-card p {
    margin: 8px 0 12px;
    color: #6e5e68;
}

.plan-buy-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-item {
    /* cardzinho padrao para listas do sistema */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdfd, #fff6fa);
    border: 1px solid #f0d7df;
    box-shadow: 0 10px 22px rgba(214, 130, 157, 0.07);
}

.settings-item strong,
.settings-item span {
    display: block;
}

.settings-item span {
    margin-top: 4px;
    font-size: 0.82rem;
    color: #7f6973;
}

.danger-btn {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(180deg, #ff8d98, #ff7886);
    color: white;
    box-shadow: none;
}

.secondary-btn {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e4c6d0;
    background: linear-gradient(180deg, #ffffff, #fff7fa);
    color: #9d4d65;
    box-shadow: none;
}

.status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff0c8;
    color: #9c6a00;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-pill.paid {
    background: #dff6e4;
    color: #1d7a37;
}

.empty-state {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdfd, #fff7fa);
    border: 1px dashed #efc8d5;
    color: #7f6973;
    text-align: center;
}

.admin-shell {
    width: min(1100px, 100%);
}

.admin-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.admin-full {
    grid-column: 1 / -1;
}

.admin-user-form {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0d7df;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-input {
    width: 180px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e4c6d0;
    font-size: 0.85rem;
}

.inline-file {
    width: 180px;
    margin: 0;
    font-size: 0.85rem;
}

.bill-group {
    padding: 14px;
    border-radius: 12px;
    background: #fffafb;
    border: 1px solid #f0d7df;
}

.bill-group h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

#admin-bill-search {
    margin-bottom: 16px;
}

#admin-bill-search,
.admin-user-form input[type="file"] {
    background: #fffafb;
}

.bill-accordion {
    border-radius: 16px;
    border: 1px solid #f0d7df;
    background: linear-gradient(180deg, #fffdfd, #fff6fa);
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(214, 130, 157, 0.08);
}

.bill-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.bill-accordion summary:hover {
    background: rgba(255, 245, 248, 0.72);
}

.bill-accordion summary::-webkit-details-marker {
    display: none;
}

.bill-accordion-head strong,
.bill-accordion-head span {
    display: block;
}

.bill-accordion-head span {
    margin-top: 4px;
    color: #7f6973;
    font-size: 0.82rem;
}

.bill-accordion-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f5;
    color: #be4d68;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bill-accordion[open] .bill-accordion-icon {
    background: var(--primary);
    color: white;
}

.bill-accordion-body {
    padding: 0 16px 16px;
    border-top: 1px solid #f4dbe3;
}

.bill-user-meta {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.bill-user-meta .settings-item {
    align-items: flex-start;
}

.support-card {
    /* card dos chamados de ajuda */
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfd, #fff6fa);
    border: 1px solid #f0d7df;
    box-shadow: 0 12px 24px rgba(214, 130, 157, 0.08);
}

.support-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.support-text {
    margin: 0 0 12px;
    color: #5f4f57;
}

.support-response {
    margin-bottom: 10px;
}

.external-link-box {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfd, #fff6fa);
    border: 1px solid #f0d7df;
    box-shadow: 0 12px 24px rgba(214, 130, 157, 0.08);
}

.external-link-box p {
    margin: 0 0 14px;
    color: #705c66;
}

.external-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.external-link-row input {
    margin: 0;
    background: #fff;
}

.public-booking-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    box-sizing: border-box;
}

.public-booking-shell {
    width: min(100%, 560px);
}

.public-booking-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 42px rgba(112, 54, 71, 0.16);
    backdrop-filter: blur(8px);
}

.public-booking-logo {
    width: min(100%, 180px);
    max-height: 140px;
    display: block;
    margin: 0 auto 12px;
    object-fit: contain;
    transform: perspective(220px) rotateX(8deg) translateY(-1px);
    filter: brightness(1.08) contrast(1.16) saturate(1.05) drop-shadow(0 10px 16px rgba(103, 54, 69, 0.15));
}

.public-booking-card h1,
.public-booking-card p {
    text-align: center;
}

.public-booking-card h1 {
    margin-bottom: 8px;
    color: #493540;
}

.public-booking-card p {
    color: #7b6670;
    margin-bottom: 18px;
}

.wizard-theme {
    --wizard-bg: #f5e2ea;
    --wizard-card: rgba(255, 255, 255, 0.96);
    --wizard-border: #e6ced7;
    --wizard-accent: #e27798;
    --wizard-accent-soft: rgba(226, 119, 152, 0.1);
    --wizard-text: #43313a;
    --wizard-muted: #7f6975;
    background:
        radial-gradient(circle at 15% 20%, rgba(226, 119, 152, 0.11), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.34), transparent 30%),
        linear-gradient(rgba(245, 226, 234, 0.72), rgba(245, 226, 234, 0.62)),
        url("../img/ChatGPT Image 23 de mar. de 2026, 11_54_16.png");
    background-size: cover;
    background-position: center;
}

.booking-wizard-shell {
    width: min(100%, 560px);
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--wizard-text);
}

.wizard-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
    filter: brightness(1.08) contrast(1.14) saturate(1.03) drop-shadow(0 12px 22px rgba(115, 60, 78, 0.14));
}

.wizard-header h1 {
    margin: 0 0 10px;
    color: var(--wizard-text);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-size: 2.1rem;
    font-weight: 500;
    text-shadow: none;
}

.wizard-header p {
    margin: 0 auto;
    color: var(--wizard-muted);
    font-family: Arial, Helvetica, sans-serif;
    max-width: 420px;
    line-height: 1.6;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--wizard-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.wizard-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--wizard-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    transition: 0.25s ease;
}

.wizard-step.active,
.wizard-step.done {
    color: var(--wizard-accent);
}

.wizard-step.active .wizard-step-circle {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent-soft);
}

.wizard-step.done .wizard-step-circle {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent);
    color: white;
}

.wizard-step-line {
    width: 52px;
    height: 1px;
    background: var(--wizard-border);
    margin: 0 6px 20px;
}

.wizard-step-line.done {
    background: var(--wizard-accent);
}

.wizard-card {
    background: var(--wizard-card);
    border: 1px solid var(--wizard-border);
    border-radius: 26px;
    padding: 32px 28px;
    box-shadow: 0 26px 52px rgba(137, 72, 93, 0.14);
    backdrop-filter: blur(10px);
}

.wizard-panel h2 {
    margin: 0 0 8px;
    color: var(--wizard-text);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.wizard-panel > p {
    margin: 0 0 24px;
    color: var(--wizard-muted);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    text-align: center;
}

.wizard-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.wizard-service-card,
.wizard-pro-card,
.wizard-time-slot {
    transition: 0.25s ease;
}

.wizard-service-card {
    width: 100%;
    margin: 0;
    border: 1px solid var(--wizard-border);
    border-radius: 16px;
    padding: 18px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 250, 0.9));
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(181, 98, 124, 0.06);
}

.wizard-service-card:hover,
.wizard-service-card.selected {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent-soft);
}

.wizard-service-name,
.wizard-service-duration,
.wizard-service-price {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
}

.wizard-service-name {
    color: var(--wizard-text);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.wizard-service-duration {
    color: var(--wizard-accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.wizard-pro-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    justify-items: center;
}

.wizard-pro-card {
    width: min(100%, 420px);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--wizard-border);
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 250, 0.9));
    box-shadow: 0 10px 22px rgba(181, 98, 124, 0.06);
}

.wizard-pro-card:hover,
.wizard-pro-card.selected {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent-soft);
}

.wizard-pro-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--wizard-accent);
    background: rgba(223, 111, 144, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-accent);
    flex-shrink: 0;
}

.wizard-pro-meta strong,
.wizard-pro-meta span {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.wizard-pro-meta strong {
    color: var(--wizard-text);
    margin-bottom: 4px;
}

.wizard-pro-meta span {
    color: var(--wizard-muted);
    font-size: 0.84rem;
}

.wizard-form-group {
    margin-bottom: 18px;
}

.wizard-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--wizard-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
}

.wizard-form-group input {
    margin: 0;
    background: #fffdfd;
    border-color: var(--wizard-border);
    color: var(--wizard-text);
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.wizard-time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wizard-time-slot {
    width: 100%;
    margin: 0;
    border: 1px solid var(--wizard-border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    color: var(--wizard-text);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
}

.wizard-time-slot:hover,
.wizard-time-slot.selected {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent-soft);
    color: var(--wizard-accent);
}

.wizard-time-slot.unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wizard-actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.wizard-actions.single {
    justify-content: flex-end;
}

.wizard-btn {
    width: auto;
    margin: 0;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.wizard-btn-secondary {
    background: transparent;
    border: 1.5px solid var(--wizard-border);
    color: var(--wizard-muted);
}

.wizard-btn-secondary:hover {
    border-color: var(--wizard-accent);
    color: var(--wizard-accent);
}

.wizard-btn-primary {
    background: linear-gradient(180deg, #e681a0, #da6d8d);
    color: white;
    flex: 1;
    box-shadow: 0 14px 28px rgba(181, 98, 124, 0.18);
}

.wizard-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.wizard-btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.wizard-summary {
    background: rgba(233, 122, 153, 0.08);
    border: 1px solid rgba(233, 122, 153, 0.16);
    border-radius: 18px;
    padding: 18px;
}

.wizard-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-family: Arial, Helvetica, sans-serif;
}

.wizard-summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(233, 122, 153, 0.08);
}

.wizard-summary-row span:first-child {
    color: var(--wizard-muted);
}

.wizard-summary-row span:last-child {
    color: var(--wizard-text);
    font-weight: 700;
    text-align: right;
}

.wizard-success {
    text-align: center;
}

.wizard-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 122, 153, 0.12);
    border: 1.5px solid var(--wizard-accent);
    color: var(--wizard-accent);
    font-size: 1.8rem;
    box-shadow: 0 16px 28px rgba(181, 98, 124, 0.12);
}

@media (max-width: 980px) {
    .auth-page {
        flex-direction: column;
        text-align: center;
    }

    .hero-copy {
        max-width: 540px;
    }

    .dashboard-header {
        grid-template-columns: 96px 1fr 96px;
        gap: 8px;
        padding: 12px 14px;
    }

    .menu {
        gap: 8px;
    }

    .menu li {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .admin-main-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        width: 100%;
    }

    .inline-input {
        width: 100%;
    }

    .inline-file {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        background-position: right center;
    }

    .auth-page,
    .dashboard-page {
        padding-inline: 14px;
    }

    fieldset {
        padding: 18px;
    }

    .rem {
        flex-direction: column;
        align-items: stretch;
    }

    .menu {
        width: 100%;
        gap: 6px;
        flex-wrap: wrap;
    }

    .menu li {
        padding: 9px 12px;
        font-size: 0.88rem;
    }
}

/* =====================================================
   LAYOUT MOBILE - RESPONSIVO PARA QUALQUER TELEFONE
   Header fixo no topo, calendario que cabe na tela,
   nav fixo no rodape sem precisar rolar.
   ===================================================== */
@media (max-width: 600px) {

    /* --- Reset da pagina --- */
    .dashboard-page {
        padding: 0;
        background-position: center top;
        /* altura exata da viewport, sem overflow vertical */
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .dashboard-shell {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    /* --- Header mobile --- */
    .dashboard-header {
        position: relative;
        flex-shrink: 0;
        border-radius: 0;
        display: flex;
        align-items: center;
        padding: 10px 14px;
        gap: 0;
        box-shadow: 0 2px 12px rgba(181, 62, 91, 0.18);
        /* grid desktop vira flex no mobile */
        grid-template-columns: unset;
    }

    .header-logo {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .header-menu {
        display: none;
    }

    .header-menu.mobile-visible {
        display: flex;
        flex: 1;
        justify-content: center;
        border-left: 6px solid rgba(255, 255, 255, 0.35);
        border-right: 6px solid rgba(255, 255, 255, 0.35);
        padding: 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Titulo centralizado com position absolute */
    .header-title-mobile {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        letter-spacing: 0.02em;
        pointer-events: none;
        white-space: nowrap;
    }

    /* Oculta o grupo desktop (share + sair) e mostra so o sair compacto */
    .header-right {
        margin-left: auto;
        gap: 6px;
    }

    .header-share-btn {
        display: none;
    }

    .logout {
        padding: 6px 11px;
        font-size: 0.76rem;
        border-radius: 8px;
        white-space: nowrap;
        box-shadow: none;
    }

    /* --- Container principal: ocupa o espaco restante entre header e nav --- */
    .dashboard-container {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        /* padding bottom = altura do nav + folga */
        padding: 12px 14px 80px;
        margin: 0 auto;
        max-width: 360px;
        width: 100%;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-card {
        padding: 12px;
        border-radius: 14px;
    }

    /* --- Calendario cabe na tela --- */
    .calendar-panel {
        padding: 10px 10px;
        border-radius: 12px;
    }

    .calendar-topbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .calendar-topbar h2 {
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .calendar-clock {
        font-size: 0.76rem;
        padding: 4px 8px;
        justify-self: end;
    }

    .calendar-nav {
        justify-self: start;
    }

    .calendar-arrow {
        width: 30px;
        height: 28px;
        font-size: 1.3rem;
    }

    /* ESCONDER CALENDARIO NO MOBILE */
    #calendar {
        display: none;
    }

    /* LISTA DE AGENDAMENTOS EM CARDS NO MOBILE */
    .agendamentos-lista-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .agendamento-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 252, 0.9));
        border: 1px solid rgba(239, 111, 145, 0.2);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(181, 62, 91, 0.08);
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .agendamento-card:hover {
        border-color: rgba(239, 111, 145, 0.5);
        box-shadow: 0 4px 16px rgba(181, 62, 91, 0.15);
        transform: translateY(-2px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 251, 0.95));
    }

    .agendamento-card .card-time {
        background: linear-gradient(135deg, #f47f9d, #ec7292);
        color: white;
        border-radius: 8px;
        padding: 8px 12px;
        text-align: center;
        min-width: 55px;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .agendamento-card .card-time-label {
        font-size: 0.65rem;
        opacity: 0.8;
    }

    .agendamento-card .card-info {
        flex: 1;
        min-width: 0;
    }

    .agendamento-card .card-cliente {
        font-weight: 600;
        color: var(--text);
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .agendamento-card .card-servico {
        font-size: 0.8rem;
        color: var(--muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .agendamento-card .card-profissional {
        font-size: 0.75rem;
        color: #999;
        display: flex;
        gap: 4px;
        margin-top: 2px;
    }

    .agendamento-card .card-profissional::before {
        content: "👤";
    }

    /* Slots menores para caber mais no viewport */
    .fc-timegrid-slot {
        height: 22px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.72rem;
        padding: 3px 2px;
    }

    .fc-timegrid-slot-label-cushion,
    .fc-timegrid-axis-cushion {
        font-size: 0.7rem;
    }

    /* --- Drawer vira bottom sheet --- */
    .booking-drawer {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 90dvh;
        transform: translateY(100%);
        padding: 0;
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .booking-drawer.is-open {
        transform: translateY(0);
    }

    .booking-drawer-card {
        height: 100%;
        border-radius: 22px 22px 0 0;
        border-left: none;
        border-top: 1px solid #f0d6dd;
        padding: 8px 18px 24px;
        box-shadow: 0 -14px 38px rgba(96, 45, 60, 0.18);
        overflow-y: auto;
    }

    /* Alca visual */
    .booking-drawer-card::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: #e0c8d0;
        margin: 0 auto 16px;
    }

    /* --- Settings tabs 3 colunas --- */
    .settings-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .settings-tab {
        padding: 7px 4px;
        font-size: 0.75rem;
        border-radius: 9px;
    }

    /* --- Nav inferior fixo --- */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        display: flex;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #f0d7df;
        box-shadow: 0 -4px 20px rgba(181, 62, 91, 0.1);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        /* altura fixa + safe area do iPhone */
        height: calc(58px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav button {
        flex: 1;
        margin: 0;
        padding: 6px 2px 4px;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #a07080;
        font-size: 0.6rem;
        font-weight: 600;
        cursor: pointer;
        transition: color 0.15s ease;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav button:focus {
        outline: none;
        box-shadow: none;
    }

    .mobile-bottom-nav button.active {
        color: var(--primary);
    }

    .mobile-bottom-nav button.active::after {
        content: "";
        position: absolute;
        bottom: 4px;
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: var(--primary);
    }

    .mobile-bottom-nav .nav-icon {
        font-size: 1.35rem;
        line-height: 1;
    }

    .mobile-bottom-nav .nav-label {
        line-height: 1;
    }
}

/* Esconde nav inferior em telas maiores */
@media (min-width: 601px) {
    .mobile-bottom-nav {
        display: none;
    }

    /* Esconde action bar que so faz sentido no mobile */
    .calendar-actions-bar {
        display: none;
    }
}
