:root {
    --app-primary: #7c3aed;
    --app-primary-dark: #4a1d96;
    --app-secondary: #f59e0b;
    --app-accent: #16a34a;
    --app-bg: #fff7ed;
}

body {
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    font-family: "Poppins", sans-serif;
    color: #1f2937;
}

.app-navbar {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
    box-shadow: 0 10px 25px rgba(74, 29, 150, 0.25);
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.navbar-brand span {
    font-size: 0.98rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.app-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(88, 28, 135, 0.14);
}

.hero {
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary), var(--app-accent));
    color: #fff;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.22);
}

.hero-title {
    font-family: "Sora", sans-serif;
    font-size: 2.05rem;
    letter-spacing: -0.35px;
}

.hero-subtitle {
    font-size: 0.98rem;
    opacity: 0.95;
}

.btn-app-primary {
    background: linear-gradient(135deg, var(--app-primary), #a855f7);
    color: #fff;
    border: none;
}

.btn-app-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, var(--app-primary-dark));
}

.section-title {
    font-weight: 700;
    font-family: "Sora", sans-serif;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 460px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--app-bg);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.info-box {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.journey-card .card-body {
    padding: 1rem;
}

.stats-panel {
    background: #ffffff;
    border: 1px solid #f3e8ff;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.08);
}

.stats-label {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stats-value {
    font-family: "Sora", sans-serif;
    font-size: 1.28rem;
    color: #4a1d96;
}

.stats-foot {
    color: #166534;
    font-size: 0.78rem;
    font-weight: 600;
}

.period-select-panel {
    height: 100%;
}

.period-select {
    border-radius: 10px;
    border: 2px solid #e9d5ff;
    font-weight: 600;
    color: #4a1d96;
}

.period-select:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.period-loss-box {
    border-radius: 12px;
    background: linear-gradient(135deg, #faf5ff 0%, #fff7ed 100%);
    border: 1px solid #e9d5ff;
    padding: 0.65rem 0.75rem;
}

.period-loss-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #6d28d9;
    margin: 0;
}

.user-initial {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #f59e0b, #22c55e);
    color: #fff;
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.3);
}

.user-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5d0fe;
    box-shadow: 0 8px 14px rgba(76, 29, 149, 0.25);
}

.joined-time {
    color: #9a3412;
    font-size: 0.68rem;
    font-weight: 500;
}

.admin-profile-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f3e8ff;
    box-shadow: 0 8px 18px rgba(76, 29, 149, 0.2);
}

.admin-profile-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #22c55e);
}

.date-pill {
    background: #f3e8ff;
    color: #6d28d9;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e9d5ff;
}

.journey-metrics {
    border-radius: 12px;
    background: #fffaf0;
    border: 1px solid #fde68a;
    padding: 0.6rem 0.7rem;
}

.loss-value {
    font-size: 1rem;
    font-weight: 700;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
}

.nav-link:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .brand-logo {
        width: 24px;
        height: 24px;
    }

    .navbar-brand span {
        font-size: 0.86rem;
        max-width: 175px;
        white-space: normal;
    }

    .hero {
        padding: 1.1rem;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .timeline-item {
        align-items: flex-start;
    }

    .user-photo,
    .user-initial {
        width: 44px;
        height: 44px;
    }

    .admin-profile-photo,
    .admin-profile-fallback {
        width: 56px;
        height: 56px;
    }
}
