/* Agenda Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary-orange: #FF9F1C;
    --primary-blue: #4CC9F0;
    --primary-green: var(--petlify-turquoise);
    --dark-blue: var(--petlify-blue-dark);
    --gray-bg: #F0F2F5;
    --white: #FFFFFF;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

body {
    background: linear-gradient(135deg, #d4f1ed 0%, #fde4d4 100%);
    /* Soft teal to warm peach gradient - more intense */
    background-attachment: fixed;
    /* Keeps gradient fixed on scroll */
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    padding: 2rem;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #e0e0e0;
    transition: width 0.3s ease, padding 0.3s ease;
    overflow: visible;
    /* Allow toggle button to extend beyond */
    z-index: 100;
}

.sidebar.collapsed {
    width: 80px;
    padding: 1.5rem 0.5rem;
}

.sidebar-toggle {
    position: absolute;
    top: 1.5rem;
    right: -12px;
    background: var(--primary-orange);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 1000;
    /* Above everything */
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Nome da loja pode quebrar em 2 linhas: com nowrap + overflow
       hidden o nome era cortado ("Pet Shop Teste Barretos" virava
       "Pet Shop Teste Barretc"). */
    white-space: normal;
    overflow-wrap: break-word;
    overflow: hidden;
    transition: justify-content 0.3s ease;
}

/* O nome é um flex item: min-width: 0 permite encolher e quebrar. */
.brand span {
    min-width: 0;
    overflow-wrap: break-word;
}

.sidebar.collapsed .brand {
    justify-content: center;
    font-size: 0;
    /* Hide text */
}

.sidebar.collapsed .brand i {
    font-size: 2rem;
    /* Enlarge icon when collapsed */
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 1rem;
    border-radius: 12px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    /* Ensure horizontal layout in sidebar */
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 1rem 0.5rem;
    font-size: 0;
    /* Hide text */
}

.sidebar.collapsed .nav-item i {
    font-size: 1.5rem;
    /* Make icons bigger when collapsed */
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 159, 28, 0.1);
    color: var(--primary-orange);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    max-width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s ease, max-width 0.3s ease;
}

.sidebar.collapsed~.main-content {
    margin-left: 80px;
    max-width: calc(100% - 80px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.week-range {
    color: #666;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--petlify-turquoise), var(--petlify-turquoise));
    /* Turquoise gradient */
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(46, 196, 182, 0.3);
    /* Turquoise shadow */
}

/* Week Navigation */
.week-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-nav,
.btn-today {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav:hover,
.btn-today:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-today {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Sticky Header Wrapper */
.sticky-controls {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gray-bg);
    /* Match body background */
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    margin-top: -1rem;
    /* Offset main padding */
}

/* Calendar Grid */
.calendar-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: visible;
    /* Let it overflow to trigger browser scroll */
}

.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border-radius: 8px;
    /* overflow: hidden; Removed to allow sticky children to work relative to body scroll */
    min-width: 1500px;
    /* Force wide width = Browser Scrollbar */
}

.time-label,
.day-header,
.time-slot {
    background: white;
    padding: 0.75rem;
    text-align: center;
}

.time-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sticky Left */
    position: sticky;
    left: 0;
    z-index: 95;
    background: white;
    border-right: 1px solid #f0f0f0;
}

/* Calendar Header Row (Separate from scrollable grid) */
.calendar-header-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    /* Grid line color */
    border-radius: 8px 8px 0 0;
    /* Rounded top only */
    overflow: hidden;
    min-width: 1500px;
    /* Match grid width */
    margin-bottom: 1px;
    /* Gap before body */
    margin-left: 1.5rem;
    /* Align with calendar-container padding */
    margin-right: 1.5rem;
}

.day-header {
    background: linear-gradient(135deg, var(--primary-orange), #F3722C);
    color: white;
    font-weight: 800;
    padding: 0.25rem;
    font-size: 0.9rem;
    /* Removed sticky prompts, now part of sticky block */
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-header.today {
    background: var(--petlify-turquoise);
}

.day-header.future {
    background: linear-gradient(135deg, var(--primary-orange), #F3722C);
}

.day-header.past {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    opacity: 0.7;
}

.time-slot {
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.time-slot:hover {
    background: rgba(255, 159, 28, 0.05);
}

.time-slot.booked {
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.95), rgba(243, 114, 44, 0.95));
    color: white;
    cursor: pointer;
    padding: 0.4rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    overflow: hidden;
    min-height: 80px;
    position: relative;
}

.time-slot.booked.completed {
    background: linear-gradient(135deg, #48BB78, #38A169);
}

.time-slot.booked.cancelled {
    background: linear-gradient(135deg, #F56565, #E53E3E);
    position: relative;
}

.time-slot.booked.rescheduled {
    background: linear-gradient(135deg, #A0AEC0, #718096);
    cursor: move;
}

.time-slot.booked.rescheduled:hover {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.delete-slot-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.2s;
}

.delete-slot-btn:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
}

.time-slot.available:hover {
    background: rgba(46, 196, 182, 0.1);
    cursor: pointer;
}

.time-slot.blocked {
    background: linear-gradient(135deg, #CBD5E0, #A0AEC0);
    color: #4A5568;
    position: relative;
}

/* Slot Action Menu */
.slot-action-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 200px;
    animation: menuFadeIn 0.2s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.menu-option {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    color: #333;
}

.menu-option i {
    font-size: 1.2rem;
}

.menu-option:hover {
    background: rgba(46, 196, 182, 0.1);
    color: var(--primary-green);
}

.menu-option.menu-cancel {
    color: #E53E3E;
}

.menu-option.menu-cancel:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
}

.time-slot.booked.locked {
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.9), rgba(100, 100, 100, 0.9));
    cursor: not-allowed;
}

.time-slot.booked.status-purple {
    background: linear-gradient(135deg, #9F7AEA, #805AD5) !important;
    /* Purple gradient */
    color: white;
}

.time-slot.booked.status-turquoise {
    background: linear-gradient(135deg, var(--petlify-turquoise), var(--petlify-blue-light)) !important;
    /* Turquoise gradient */
    color: white;
}

.time-slot.booked.status-yellow {
    background: linear-gradient(135deg, #ECC94B, #D69E2E) !important;
    /* Yellow/Gold gradient */
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Help readability */
}

.time-slot.booked.locked:hover {
    opacity: 1;
    background: linear-gradient(135deg, rgba(180, 50, 50, 0.9), rgba(150, 30, 30, 0.9));
    cursor: pointer;
}

.time-slot.booked:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Agendamentos paralelos (rodada 2): a célula ocupada vira um contêiner
   com TODOS os cartões do horário empilhados + botão para criar outro
   agendamento no mesmo horário com outro profissional. Sem isso, só o
   primeiro agendamento da célula aparecia e não havia como criar o 2º. */
.time-slot.multi-booked {
    background: white;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: default;
    overflow: visible;
}

.time-slot.multi-booked .time-slot.booked {
    flex-shrink: 0;
}

.add-parallel-btn {
    width: 100%;
    padding: 0.4rem 0.25rem;
    border: 1.5px dashed #2EC4B6;
    border-radius: 8px;
    background: rgba(46, 196, 182, 0.08);
    color: #1A7A70;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.add-parallel-btn:hover {
    background: rgba(46, 196, 182, 0.18);
}

.slot-content {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    height: 100%;
}

.slot-pet-photo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slot-pet-photo.gender-male {
    border: 3px solid var(--petlify-turquoise);
    position: relative;
}

.slot-pet-photo.gender-female {
    border: 3px solid #C8A2C8;
    position: relative;
}

.slot-no-photo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.slot-no-photo.gender-male {
    border: 3px solid var(--petlify-turquoise);
}

.slot-no-photo.gender-female {
    border: 3px solid #C8A2C8;
}

.slot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    position: relative;
    padding-right: 3rem;
}

.slot-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.1rem;
}

.slot-name-main {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slot-service {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: var(--petlify-turquoise);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slot-detail {
    font-size: 0.65rem;
    opacity: 0.9;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.slot-time-badge {
    position: absolute;
    top: 50%;
    right: 0.3rem;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Client Sidebar */
.client-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.client-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.2rem;
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.search-box {
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
}

.client-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.client-item {
    padding: 1rem;
    border-radius: 12px;
    background: #f8f8f8;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.client-item:hover {
    background: rgba(255, 159, 28, 0.1);
}

.client-item h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.client-item p {
    font-size: 0.85rem;
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

#client-modal {
    z-index: 300;
    /* Higher than appointment modal */
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content>form,
.modal-content>.modal-body {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* Rodada 3 — Bug 1 (modal do cliente abria rolado): o conteúdo do
   modal é UM único scroller — o <form> acima. Trava de segurança:
   nada pode vazar visualmente para fora da caixa de 90vh (o que
   acontecia quando as seções Medicamentos e ações caíam fora do form
   por causa dos <form> aninhados descartados pelo parser), e o form
   pode de fato encolher dentro da coluna flex (min-height: 0
   explícito). Escopo restrito a #client-modal para não tocar os
   outros modais que usam .modal-content. */
#client-modal .modal-content {
    overflow: hidden;
}

#client-modal .modal-content>form {
    min-height: 0;
}

.modal-header {
    padding: 1rem 2rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-header button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-content form {
    padding: 2rem;
}

.modal-content label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: var(--primary-orange);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-orange), #F3722C);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

.btn-new-client-inline {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--petlify-blue-light));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-new-client-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 196, 182, 0.3);
}

/* Modal Expanded */
.modal-large {
    max-width: 700px;
    max-height: 90vh;
}

.modal-header-mascot {
    background: linear-gradient(135deg, var(--primary-green), var(--petlify-blue-light));
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
    /* Rodada 4 — Problema 1: o cabeçalho nunca pode ser comprimido
       pela coluna flex do modal (era o que escondia o título atrás do
       banner quando o conteúdo passava de 90vh). */
    flex-shrink: 0;
}

/* Rodada 4 — Problema 1: a barra de título vem ANTES do banner (ver
   clients.html) e carrega o fundo teal; o título e o × ficam no topo
   do modal, sempre visíveis ao abrir, e o banner decorativo fica
   abaixo deles. */
.modal-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(46, 196, 182, 0.9), rgba(46, 196, 182, 1));
}

.mascot-header-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.modal-header-mascot h3 {
    color: white;
    font-size: 1.3rem;
    padding: 0;
    flex: 1;
    text-align: center;
    margin: 0;
}

.modal-header-mascot button {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
}

.modal-header-mascot button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.client-form-expanded {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.photos-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    align-items: start;
}

.photo-upload {
    display: flex;
    flex-direction: column;
}

.photo-upload label {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 1.5rem;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-green);
    position: relative;
    user-select: none;
}

.photo-preview.gender-male {
    border: 3px solid transparent;
    background-image:
        linear-gradient(#f0f0f0, #f0f0f0),
        linear-gradient(135deg, var(--primary-green), var(--petlify-blue-light));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.photo-preview.gender-female {
    border: 3px solid transparent;
    background-image:
        linear-gradient(#f0f0f0, #f0f0f0),
        linear-gradient(135deg, #FF69B4, #FF1493);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.75rem 0;
}

.zoom-controls button {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-controls button:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.btn-new-pet {
    background: linear-gradient(135deg, var(--primary-orange), #F3722C);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.btn-new-pet:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 159, 28, 0.3);
}

.photo-upload input[type="file"] {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-col label {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
    }

    .client-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Agenda Search Box */
.agenda-search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    margin-left: 1rem;
    flex: 1;
    max-width: 400px;
    gap: 0.5rem;
}

.agenda-search-box i {
    color: #a0aec0;
    font-size: 1.2rem;
}

.agenda-search-box input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    color: #4a5568;
}

.agenda-search-box input::placeholder {
    color: #a0aec0;
}

/* Dimmed state for filtering */
.time-slot.dimmed {
    opacity: 0.1;
    filter: grayscale(100%);
    pointer-events: none;
    /* Optional: prevent interaction */
    transition: all 0.3s ease;
}

/* Settings Button */
.btn-icon-small {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    background: #f0f0f0;
    color: var(--primary-orange);
}

/* Blocked Day Header Styling */
.day-header.blocked-header {
    background: #e0e0e0;
    color: #888;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.05) 10px,
            rgba(0, 0, 0, 0.05) 20px);
}

/* Static Blocked Slot */
.time-slot.blocked-static {
    background-color: #f9f9f9 !important;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 10px 10px;
}