* {
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(
        180deg,
        #0b6b45 0px,
        #0f7a4d 180px,
        #f4f7f5 180px,
        #f4f7f5 100%
    );

    min-height: 100vh;
    padding: 20px;
}

.main-wrapper {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.top-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ece9;
}

.logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.system-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f2d2b;
    margin-bottom: 0;
}

.header-line {
    height: 5px;
    width: 260px;
    background: #0f8a57;
    border-radius: 20px;
    margin-top: 16px;
}

.btn-back {
    border: 1px solid #d8e2dc;
    background: white;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 500;
    color: #1c5c45;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    transition: 0.3s;
}

.btn-back:hover {
    background: #f5faf7;
}

.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #1d2939;
    margin-top: 30px;
    margin-bottom: 35px;
}

.history-card {
    background: white;
    border: 1px solid #e7ece8;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);

    transition: 0.3s;
}

.history-card:hover {
    transform: translateY(-3px);
}

.history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.penyakit-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.tanggal {
    font-size: 14px;
    color: #667085;
}

.badge-akurat {
    background: #e8f8ee;
    color: #0f7a4d;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.badge-warning {
    background: #fff4e5;
    color: #d97706;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.persentase {
    font-size: 17px;
    font-weight: 600;
    color: #0f7a4d;
    margin-bottom: 18px;
}

.input-user {
    background: #f8faf9;
    border: 1px solid #e8ece9;
    padding: 16px;
    border-radius: 16px;

    font-size: 14px;
    line-height: 1.8;
    color: #475467;

    margin-bottom: 20px;
}

.btn-detail {
    background: linear-gradient(135deg, #11a060, #0c7c4b);

    color: white;
    text-decoration: none;

    padding: 12px 20px;
    border-radius: 14px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.btn-detail:hover {
    opacity: 0.9;
    color: white;
}

.empty-box {
    text-align: center;
    padding: 70px 20px;

    background: white;
    border-radius: 24px;

    border: 1px dashed #d8e2dc;
}

.empty-box i {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-box h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-box p {
    color: #667085;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .main-wrapper {
        padding: 18px;
    }

    .page-title {
        font-size: 26px;
    }

    .penyakit-title {
        font-size: 20px;
    }
}
