/* ================= DASHBOARD CLIENTE ================= */

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

.dashboard-header .section-title {
    margin-bottom: 0.5rem;
    text-align: left;
}

.dashboard-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.logout-btn {
    white-space: nowrap;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Summary Cards ===== */

.dashboard-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1;
    min-width: 220px;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid #eee;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.summary-card.clickable {
    cursor: pointer;
}

.summary-card.clickable:hover {
    background: #f0f7ff;
    border-color: #4da3ff;
}

.summary-card.clickable:active {
    transform: scale(0.98);
}

.summary-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
}

.summary-card span {
    font-size: 0.85rem;
    color: #777;
}

/* ===== Welcome Box ===== */

.client-welcome-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.client-welcome-box h3 {
    margin-bottom: 0.5rem;
}

.client-welcome-box p {
    margin: 1rem 0 1.5rem 0;
    color: #555;
}

/* ===== Dashboard Cards ===== */

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
}

.dashboard-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* ===== Booking Rows ===== */

.booking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    background: #fafbfc;
}

.booking-row:hover {
    background: #f0f7ff;
    border-color: #e0e7ff;
    box-shadow: 0 2px 8px rgba(77, 163, 255, 0.1);
}

.booking-row:last-child {
    margin-bottom: 0;
}

.booking-row.past {
    opacity: 0.6;
    background: #f5f5f5;
}

.booking-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* ===== Dog Items ===== */

.dog-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.dog-item:last-child {
    border-bottom: none;
}

.dog-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* ===== Empty State ===== */

.empty-state {
    color: #999;
    font-style: italic;
}

/* ===== Status Badge ===== */

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-confermato,
.status-confermata {
    background: #d4edda;
    color: #155724;
}

.status-in_attesa {
    background: #fff3cd;
    color: #856404;
}

.status-annullato,
.status-annullata {
    background: #f8d7da;
    color: #721c24;
}

/* ===== Buttons ===== */

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-summary {
        flex-direction: column;
    }

    .booking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* =====================================================
   LOGIN & REGISTER – COMPATIBILE CON IL TUO BLADE
   ===================================================== */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f9f6, #e8f5ec);
    padding: 40px 15px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    animation: fadeAuth 0.4s ease;
}

.auth-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
    text-align: center;
}

.auth-header p {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46,139,87,0.15);
    outline: none;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-auth {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    background: #256f46;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer .link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer .link-button:hover {
    text-decoration: underline;
}

.error-box {
    background: #ffe6e6;
    color: #cc0000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.success-box {
    background: #e8f7ee;
    color: #247345;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

@keyframes fadeAuth {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
}

/* ===== Calendar Legend ===== */

.calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

/* Colori coerenti con il calendario */
.legend-color.green {
    background: #28a745;
}

.legend-color.yellow {
    background: #ffc107;
}

.legend-color.red {
    background: #dc3545;
}

.legend-item.info {
    margin-left: auto;
    font-size: 13px;
    color: #777;
}


/* ===== Dashboard Card Header ===== */

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===== Booking Actions ===== */

.booking-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.booking-actions form {
    display: inline-flex;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-sm:hover {
    transform: scale(1.08);
}

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

/* Bottone di visualizzazione grigio */
.btn-secondary.btn-sm {
    background: #6c757d;
    color: white;
    border: 1px solid #5a6268;
}

.btn-secondary.btn-sm:hover {
    background: #5a6268;
    border-color: #4e555b;
}

/* ===== Status Badge Aggiornato ===== */

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.status-confermato,
.status-confermata {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-in_attesa {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-annullato,
.status-annullata,
.status-cancellata {
    background: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c6cb;
    line-height: 1.4;
}

/* ===== Empty State Aggiornato ===== */

.empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
    background: #f9f9f9;
    border-radius: 10px;
}

/* ===== Responsive Aggiornato ===== */

@media (max-width: 768px) {

    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-card-header h2 {
        font-size: 1.25rem;
    }

    .booking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .booking-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {

    .dashboard-card {
        padding: 1rem;
    }

    .dashboard-card-header {
        gap: 0.5rem;
    }

    .booking-row {
        gap: 0.5rem;
    }

    .booking-actions {
        gap: 0.3rem;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===== Filter Actions ===== */

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.7rem 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234da3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem;
}

.filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(77, 163, 255, 0.15);
    background: linear-gradient(135deg, #f0f7ff, #e8f5ff);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.2);
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
}

.filter-select option {
    padding: 0.7rem 1rem;
    background: white;
    color: #333;
    font-weight: 500;
}

.filter-select option:hover {
    background: #f0f7ff;
    color: var(--primary-color);
}

/* ===== Responsive Filter ===== */

@media (max-width: 768px) {
    .filter-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }
}

/* ================= GESTIONE CONTENUTI ================= */

/* --- Elenco pagine --- */

.content-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-page-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: white;
    padding: 2rem 1.75rem;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.content-page-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.content-page-card .content-page-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.content-page-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
}

.content-page-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.content-page-card .content-page-meta {
    margin-top: auto;
    padding-top: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Navigazione rapida tra i gruppi --- */

.content-groups-nav {
    position: sticky;
    top: 90px;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: var(--bg-light);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.content-groups-nav a {
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.content-groups-nav a:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Toolbar di salvataggio sticky --- */

.content-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(240, 244, 248, 0.92);
    backdrop-filter: blur(6px);
    padding: 1rem 0;
    margin-top: 1rem;
}

/* --- Gruppi di campi (accordion) --- */

.content-group {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.content-group > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.3rem 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.content-group > summary::-webkit-details-marker {
    display: none;
}

.content-group > summary .content-group-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.content-group > summary::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.85rem;
    color: #999;
    transition: transform 0.2s ease;
}

.content-group[open] > summary::after {
    transform: rotate(180deg);
}

.content-group-body {
    padding: 0.5rem 1.75rem 1.75rem;
}

/* --- Griglia campi compatti (testo breve, prezzo, ecc.) --- */

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem 1.5rem;
}

.field-grid .form-group,
.content-group-body .form-group {
    margin-bottom: 1.2rem;
}

.field-grid .form-group.full-span {
    grid-column: 1 / -1;
}

.field-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
}

/* --- Etichette lingua (IT/EN) nei campi di contenuto --- */

.field-lang-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1px 7px;
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    vertical-align: middle;
}

.field-lang-tag-en {
    background: #fdf3e0;
    color: #a97a1f;
}

.field-lang-label {
    display: block;
    margin-top: 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Campo immagine con anteprima --- */

.image-field {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.image-field-preview {
    width: 130px;
    height: 90px;
    border-radius: 10px;
    background: var(--bg-light) center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.5rem;
}

.image-field-controls {
    flex: 1;
    min-width: 180px;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.6rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    background: var(--primary-color);
    color: white;
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-filename {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

/* --- Sezioni dinamiche: griglia di card --- */

.section-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: var(--bg-light);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: relative;
    transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.section-card.dragging {
    opacity: 0.4;
}

.section-card.drag-over {
    box-shadow: 0 0 0 3px var(--secondary-color), 0 2px 10px rgba(0,0,0,0.04);
    transform: scale(1.02);
}

.section-card-drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.85);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    touch-action: none;
}

.section-card-drag-handle:active {
    cursor: grabbing;
}

.section-card-image {
    width: 100%;
    height: 120px;
    background: #e2e8f0 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.8rem;
}

.section-card-body {
    padding: 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section-card-body h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.section-card-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
    padding-top: 0.6rem;
}

.section-card-add {
    background: transparent;
    border: 2px dashed #c8d0da;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 180px;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-card-add:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-light);
}

.section-card-add i {
    font-size: 1.6rem;
}

/* --- Modali di gestione contenuti (riusano .modal/.modal-content) --- */

.content-modal .modal-content {
    max-width: 560px;
    text-align: left;
}

.content-modal h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .content-groups-nav {
        position: static;
    }

    .content-save-bar {
        justify-content: stretch;
    }

    .content-save-bar .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================= AREA CLIENTE / ADMIN — RESTYLING ================= */

/* --- Icone nei titoli di card e sezioni --- */

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.summary-card .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin: 0 auto 0.8rem;
}

.summary-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.summary-card span {
    color: #666;
    font-size: 0.9rem;
}

/* --- Avatar circolare nelle righe elenco (prenotazioni, cani, clienti) --- */

.row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.booking-row-main,
.client-row-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.booking-row-main strong,
.client-row-main strong {
    display: block;
}

/* --- Cani (avatar + dati) --- */

.dog-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Righe cliente (elenco admin) --- */

.client-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    background: #fafbfc;
    gap: 1rem;
    flex-wrap: wrap;
}

.client-row:hover {
    background: #f0f7ff;
    border-color: #e0e7ff;
}

.client-row:last-child {
    margin-bottom: 0;
}

.client-row-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* --- Pulsanti azione compatti (icona sola) --- */

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
}

/* --- Casella di ricerca --- */

.search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Dettaglio (bookings/show, clients/show) --- */

.detail-row .detail-label {
    color: #888;
    font-weight: 600;
}

.detail-row .detail-value {
    text-align: right;
}

.detail-row.align-start {
    align-items: flex-start;
}

.detail-card {
    max-width: 700px;
    margin: 0 auto;
}

/* --- Barra azioni in fondo alle pagine di dettaglio/modifica --- */

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* --- Calendario --- */

.calendar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .client-row,
    .booking-row {
        align-items: flex-start;
    }

    .detail-row .detail-value {
        text-align: left;
    }
}