/* public_html/assets/css/app.css */

:root {
    --f7-theme-color: #00897B;
    --primary-gradient: linear-gradient(135deg, #00897B 0%, #4DB6AC 100%);
    --bg-color: #F7F9FC; /* Grigio chiarissimo moderno */
    --text-dark: #1A1A1A;
    --text-grey: #8E8E93;
}

/* 1. TYPOGRAPHY & RESET */
body, .view, .page, .navbar, .toolbar, button, input {
    font-family: 'Poppins', -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.page-content {
    background-color: var(--bg-color) !important;
}

/* 2. HEADER MODERNO */
.dashboard-header {
    background: white;
    padding: 20px 24px 10px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.user-avatar {
    width: 40px; height: 40px;
    background: #E0F2F1;
    color: #00897B;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.welcome-text { font-size: 14px; color: var(--text-grey); font-weight: 500; }
.user-name { font-size: 24px; color: var(--text-dark); font-weight: 700; line-height: 1.2; }

/* 3. CARD STATISTICHE (GRID) */
.stats-container {
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}
.stat-box {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s;
}
.stat-box:active { transform: scale(0.98); }
.stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.stat-icon.purple { background: #EDE7F6; color: #673AB7; }
.stat-icon.orange { background: #FFF8E1; color: #FFC107; }
.stat-number { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-grey); }

/* 4. BIG ACTION BUTTON (Timer) */
.timer-section {
    padding: 0 24px;
    margin-bottom: 30px;
}
.btn-timer-big {
    width: 100%;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 137, 123, 0.25);
    transition: transform 0.2s;
}
.btn-timer-big:active { transform: scale(0.98); opacity: 0.9; }
.timer-text h3 { font-size: 18px; font-weight: 600; margin: 0; }
.timer-text p { font-size: 12px; opacity: 0.8; margin: 0; }
.timer-icon {
    background: rgba(255,255,255,0.2);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* 5. LISTA ATTIVITÀ (Style Chat) */
.recent-section {
    padding: 0 24px;
}
.section-head { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }

.activity-item {
    background: white;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.activity-icon-box {
    width: 48px; height: 48px;
    background: #E0F7FA;
    color: #006064;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}
.activity-info { flex-grow: 1; }
.activity-title { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.activity-meta { font-size: 12px; color: var(--text-grey); }
.activity-arrow { color: #E0E0E0; }

/* 6. BOTTOM BAR (Galleggiante) */
.toolbar-bottom {
    background: transparent !important; /* Trasparente perché usiamo il container interno */
    padding-bottom: 20px; /* Spazio per iPhone X/11/12 */
}
.toolbar-inner {
    background: white;
    margin: 0 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: 64px !important;
    overflow: hidden;
}
.tab-link { color: #C4C4C4 !important; transition: all 0.3s; }
.tab-link-active { color: #00897B !important; transform: translateY(-2px); }
.tab-link i { font-size: 28px !important; }