/*
 * TimeSpy – dashboard
 * Teil der aufgeteilten timespy.css (siehe base.css für Variablen).
 * Reihenfolge der <link>-Tags in layout.php/login.php ist wichtig
 * und entspricht exakt der ursprünglichen Reihenfolge in dieser Datei.
 */

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

.dashboard-page {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.hero-card {
    grid-column: 1 / -1;

    min-height: 240px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 34px;

    overflow: hidden;

    position: relative;

    color: white;

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.22),
            transparent 18rem
        ),
        linear-gradient(
            135deg,
            #1d4ed8 0%,
            #2563eb 45%,
            #7c3aed 100%
        );

    box-shadow:
        0 22px 60px rgba(37,99,235,.24);
}

.hero-card::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -150px;
    bottom: -250px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.18);
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 560px;
}

.eyebrow {
    margin-bottom: 10px;

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: .1em;
    text-transform: uppercase;

    opacity: .7;
}

.hero-content h2 {
    margin: 0;

    font-size: clamp(
        2rem,
        4vw,
        3.15rem
    );

    font-weight: 650;

    letter-spacing: -.055em;
}

.hero-content p {
    margin:
        12px
        0
        24px;

    max-width: 470px;

    color: rgba(255,255,255,.72);

    line-height: 1.6;
}

.hero-card .btn-primary {
    color: #171717;
    background: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,.16);
}

.hero-card .btn-primary:hover {
    background: rgba(255,255,255,.92);
}

.hero-clock {
    position: relative;
    z-index: 2;

    min-width: 180px;

    text-align: right;
}

.hero-time {
    font-size: 3.3rem;
    font-weight: 300;

    letter-spacing: -.055em;
}

.hero-date {
    margin-top: 4px;

    color: rgba(255,255,255,.65);

    font-size: .8rem;
}

/* Metrics */

.metric-card {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    color: var(--text-secondary);

    font-size: .78rem;
    font-weight: 650;
}

.metric-value {
    margin-top: 18px;

    font-size: 2rem;
    font-weight: 650;

    letter-spacing: -.04em;
}

.metric-value.positive {
    color: var(--success);
}

.metric-footer {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: .76rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.card-subtitle {
    display: block;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: .75rem;
}

.timeline-empty {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary);
}

.timeline-empty-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    background: var(--accent-soft);
    color: var(--accent);

    border-radius: 16px;

    font-size: 1.35rem;
}

.timeline-empty strong {
    font-size: .9rem;
}

.timeline-empty span {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: .76rem;
}

@media (max-width: 1200px) {

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

@media (max-width: 900px) {

    .sidebar {
        display: none;
    }

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

    .hero-card,
    .metric-card {
        grid-column: 1;
    }

    .hero-card {
        min-height: 300px;

        align-items: flex-start;

        flex-direction: column;
    }

    .hero-clock {
        text-align: left;
    }
}

@media (max-width: 600px) {

    .dashboard-page {
        gap: 14px;
    }

    .dashboard-grid {
        gap: 14px;
    }

    .metric-card {
        padding: 16px;
    }
}




