/* --- FILE: assets/css/style.css --- */
:root {
    --primary: #10b981;
    --primary-light: #ecfdf5;
    --rose: #f43f5e;
    --rose-light: #fff1f2;
    --slate-bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
    --font-main: 'Quicksand', sans-serif;
    --font-heading: 'Quicksand', sans-serif;
    
    /* Safe Area Variables */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: var(--font-main);
    background-color: var(--slate-bg);
    color: #1e293b;
    margin: 0;
    padding-top: var(--safe-top); /* Pre-calculate for standard layouts */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cat-card-standard {
    background: white;
    border-radius: 32px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    transition: transform 0.2s;
}

.cat-card-standard:active { transform: scale(0.97); }

.cat-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.badge-status {
    font-size: 9px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.badge-upcoming {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 16px;
    margin-top: 12px;
    font-size: 10px;
}

/* Details Sidebar / Tabs */
.detail-tab {
    padding: 12px 0;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    position: relative;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-tab.active {
    color: #1e293b;
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

/* Informational Cards */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.info-value {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

/* Timeline Layout */
.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f1f5f9;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Glass & Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-around;
    padding: 10px 10px calc(24px + var(--safe-bottom));
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-item.active {
    color: var(--primary);
}

.floating-action {
    background: #000;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeInUp 0.5s ease-out; }
