/* ================= 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;
}

/* ===== 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: 12px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

.booking-row:hover {
    background: #f9fafb;
}

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

.booking-row.past {
    opacity: 0.6;
}

.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;
}

.error-box {
    background: #ffe6e6;
    color: #cc0000;
    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;
}