﻿body {
    background: #f4f6f9;
}

/* HERO */
.home-hero {
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color: white;
    padding: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
}

    .home-hero h1 {
        font-size: 32px;
        margin: 0;
    }

    .home-hero p {
        opacity: .8;
    }

/* KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    padding: 20px;
}

.kpi-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.kpi-value {
    font-size: 28px;
    font-weight: bold;
}

.kpi-label {
    color: #666;
}

.kpi-card.danger {
    border-left: 5px solid #dc2626;
}

/* GRID */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    padding: 20px;
}

/* CARDS */
.card-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

    .card-box h3 {
        margin-bottom: 15px;
    }

/* BUTTONS */
.action-btn {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    transition: .3s;
}

    .action-btn:hover {
        background: #2563eb;
        color: white;
    }

/* ACTIVITY */
.activity {
    border-left: 3px solid #2563eb;
    padding-left: 10px;
    margin-bottom: 10px;
}

/* EXPIRY */
.expiry {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.danger-text {
    color: red;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .kpi-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        flex-direction: column;
        text-align: center;
    }
}
