/* ===============================================
   VREYA - CSS DASHBOARD CLIENTE
   Design minimale e professionale - Identico al riferimento
   =============================================== */

/* ===============================================
   DASHBOARD LAYOUT - DUE COLONNE
   =============================================== */
.dashboard-layout {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    min-height: calc(100vh - 200px);
}

/* ===============================================
   SIDEBAR MENU - STILE MINIMALE
   =============================================== */
.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    padding-bottom: 8px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-item:hover {
    background-color: #f8fafc;
    color: var(--color-text);
}

.menu-item.active {
    background-color: var(--color-primary);
    color: white;
}

.menu-item.logout {
    margin-top: 8px;
    color: #ef4444;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.menu-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.05);
    color: #dc2626;
}

.menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===============================================
   CONTENUTO PRINCIPALE
   =============================================== */
.dashboard-main {
    flex: 1;
    min-width: 0;
}

/* HEADER UTENTE CON AVATAR */
.user-header {
    margin-bottom: 32px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    position: relative;
    cursor: pointer;
}

.user-avatar img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.user-avatar:hover img {
    opacity: 0.8;
}

.user-details h1 {
    font-size: 45px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.premium {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: white;
}

/* ===============================================
   CONTENUTO DASHBOARD
   =============================================== */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* CARDS CONTENUTO - STILE MINIMALE */
.content-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* ===============================================
   PROSSIME PRENOTAZIONI - DUE RIQUADRI
   =============================================== */
.bookings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.booking-card.active {
    border-color: var(--color-primary);
    background: rgba(45, 90, 61, 0.02);
}

.booking-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* RIQUADRO SINISTRA - PRENOTAZIONE ATTIVA */
.booking-service h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.service-provider {
    font-size: 14px;
    color: var(--color-secondary);
    margin: 0 0 12px 0;
}

.booking-date {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-label {
    font-size: 13px;
    color: var(--color-secondary);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.status-badge.confirmed {
    background-color: rgba(45, 90, 61, 0.1);
    color: var(--color-primary);
}

.booking-countdown {
    margin: 16px 0;
}

.countdown-container {
    text-align: center;
}

.countdown-label {
    font-size: 12px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 4px;
}

.countdown-time {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    display: block;
}

.countdown-note {
    font-size: 11px;
    color: var(--color-secondary);
    display: block;
    margin-top: 4px;
}

.booking-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-action {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
}

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

.btn-action.primary:hover {
    background-color: var(--color-dark);
}

.btn-action.secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-action.secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* RIQUADRO DESTRA - EMPTY STATE */
.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon {
    color: var(--color-secondary);
    opacity: 0.5;
}

.empty-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.empty-content p {
    font-size: 14px;
    color: var(--color-secondary);
    margin: 0;
    max-width: 200px;
    line-height: 1.4;
}

.btn-explore {
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-explore:hover {
    background-color: var(--color-dark);
    transform: translateY(-1px);
}

/* ===============================================
   AZIONI RAPIDE - GRID ORIZZONTALE
   =============================================== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.action-item:hover {
    background-color: rgba(45, 90, 61, 0.02);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.action-icon {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}

.action-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

/* ===============================================
   TABELLA STORICO - STILE PROFESSIONALE
   =============================================== */
.history-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr 1fr;
    gap: 16px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background-color: #f8fafc;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row>span {
    font-size: 14px;
    color: var(--color-text);
}

.status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status.completed {
    background-color: rgba(45, 90, 61, 0.1);
    color: var(--color-primary);
}

.btn-view {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ===============================================
   STATISTICHE - TRE COLONNE
   =============================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: white;
    border-radius: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 24px;
    }

    .dashboard-sidebar {
        width: 100%;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 8px;
    }

    .menu-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .bookings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .dashboard-layout {
        margin-top: 16px;
    }

    .user-header h1 {
        font-size: 24px;
    }

    .content-card {
        padding: 20px;
    }

    .booking-card {
        padding: 16px;
        min-height: 150px;
    }

    .table-header {
        display: none;
    }

    .table-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 8px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .content-card {
        padding: 16px;
    }

    .booking-card {
        padding: 12px;
    }

    .sidebar-menu {
        flex-direction: column;
    }
}
/* ===============================================
   PAGE TITLE SECTION
   =============================================== */
.page-title-section {
    margin: 24px 0;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
}



/* ===============================================
   LAYOUT GLOBALE DASHBOARD - Alza contenuto (come professionista)
   =============================================== */
.dashboard-main {
    margin-top: -50px !important;
}

.breadcrumb {
    margin-bottom: 12px !important;
}

/* ===============================================
   WIDGET IL MIO ABBONAMENTO
   =============================================== */
.abbonamento-card {
    margin-top: 24px;
    margin-bottom: 24px;
}

.abbonamento-content {
    padding: 4px 0;
}

/* Container per più abbonamenti */
.abbonamenti-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.abbonamento-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    background: white;
}

.abbonamento-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.plan-badge svg {
    flex-shrink: 0;
}

.plan-provider {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.abbonamento-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    padding: 16px;
    background: var(--color-gray-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.abbonamento-actions {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Pulsante azione header card (Gestisci / Vedi tutte): verde, testo bianco */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--color-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.view-all-btn svg {
    fill: currentColor;
}

.btn-ricarica {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ricarica:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .abbonamento-plan {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .abbonamento-info {
        grid-template-columns: 1fr;
    }
}
