/* ===== BASE ===== */
body {
    background: #f4fbf7;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeInPage 0.8s ease forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== HEADER ===== */
header {
    background: white;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: #43a047;
}

.brand img {
    width: 40px;
}

/* ===== HERO ===== */
.welcome-box {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    padding: 36px 28px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
    animation: slideDown 0.9s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-box h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.welcome-box p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===== GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.2s;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.3s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 0.4s;
}

.dashboard-card:nth-child(4) {
    animation-delay: 0.5s;
}

.dashboard-card:nth-child(5) {
    animation-delay: 0.6s;
}

.dashboard-card:nth-child(6) {
    animation-delay: 0.7s;
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.dashboard-card:hover::before {
    opacity: 0.08;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.dashboard-card * {
    position: relative;
    z-index: 1;
}

/* ===== ICON ===== */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.icon-box svg {
    width: 26px;
    height: 26px;
    stroke: #2e7d32;
}

/* ===== TEXT ===== */
.dashboard-card h3 {
    color: #2e7d32;
    font-size: 18px;
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.dashboard-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.25);
}

.dashboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.35);
}

/* Media Query */
@media (max-width: 600px) {
    .welcome-box {
        padding: 28px 20px;
    }

    .welcome-box h1 {
        font-size: 24px;
    }

    .dashboard-card {
        padding: 22px 18px;
    }

    .dashboard-button {
        width: 100%;
        text-align: center;
    }
}
