* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}
html, body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* --- SIDEBAR & OVERLAY --- */
.sidebar { 
    position: fixed; 
    left: -280px; 
    top: 0; 
    width: 280px; 
    height: 100%; 
    background: #fff; 
    z-index: 1000; 
    transition: 0.3s; 
    box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
    display: flex; 
    flex-direction: column; 
}
.sidebar.open { 
    left: 0; 
}
.sidebar-header { 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #eee; 
}
.logo { 
    font-weight: 700; 
    color: #2ecc71; 
    font-size: 1.2rem; 
}
.close-btn { 
    font-size: 2rem; 
    border: none; 
    background: none; 
    cursor: pointer; 
    color: #ccc; 
}
.sidebar-menu { 
    padding: 20px; 
    flex-grow: 1; 
}
.menu-item { 
    display: block; 
    padding: 12px 15px; 
    text-decoration: none; 
    color: #555; 
    border-radius: 8px; 
    margin-bottom: 5px; 
    font-weight: 500; 
    border: none; 
    background: none; 
    width: 100%; 
    text-align: left; 
    cursor: pointer; 
    font-size: 0.9rem;
    font-family: inherit;
}
.menu-item:hover, 
.menu-item.active { 
    background: #e8f5e9; 
    color: #2e7d32; 
}
.dropdown-container { 
    display: none; 
    padding-left: 20px; 
    background: #fafafa; 
}
.dropdown-container.show { 
    display: block; 
}
.dropdown-container a { 
    display: block; 
    padding: 10px; 
    text-decoration: none; 
    color: #777; 
    font-size: 0.9rem; 
}
.dropdown-container a:hover {
    background: #e8f5e9; 
    color: #2e7d32; 
}
.dropdown-btn { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.arrow { 
    float: none; 
    font-size: 0.9rem; 
}
.sidebar-footer { 
    padding: 20px; 
    border-top: 1px solid #eee; 
}
.logout { 
    color: #e74c3c !important; 
}
.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.3); 
    display: none; 
    z-index: 900; 
}
.overlay.show { 
    display: block; 
}

/* --- SECTION 1: HERO (WELCOME BANNER) --- */
.section-hero {
    height: 350px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('img/welcome-banner.png') center /cover;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
}
.top-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}
.hamburger { 
    background: none; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}
.hamburger span { 
    width: 18px; 
    height: 1.5px; 
    background: #fff; 
    border-radius: 2px; 
}
.user-info-top { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #fff; 
}
.avatar-top { 
    width: 35px; 
    height: 35px; 
    background: #eee; 
    border-radius: 50%; 
    border: 2px solid #fff; 
}
.hero-content { 
    flex-grow: 1; 
    justify-content: left; 
    padding-top: 60px;
    color: #fff; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}
.hero-content h1 { 
    font-size: 2rem; 
    font-weight: bold;
    font-family: Helvetica, sans-serif;
}

/* --- ELEMEN LINGKARAN PEMBAGI --- */
.split-circle {
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 7px solid #063B00;
}
.split-circle img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
}

/* --- SECTION 2: VISUALISASI DATA (TAB PUTIH) --- */
.section-data { 
    margin-top: -80px; 
    position: relative; 
    z-index: 10; 
    background: transparent; 
}
.tab-content {
    background: #f1f1f1;
    margin: 0 auto;
    border-radius: 40px 40px 0 0; 
    padding: 100px 40px 40px; 
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    position: relative;
}
.status-display { 
    text-align: center; 
    padding-top: 25px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    background: #063B00; 
    border-radius: 20px;
}
.status-display .label { 
    color: #fff; 
    font-size: 1.2rem; 
    font-weight: 600; 
}
.status-display h1 { 
    font-size: 3rem; 
    margin: 10px 0; 
    color: #fff; 
}
.score-badge { 
    display: inline-block; 
    padding-top: 5px;
    padding-bottom: 25px; 
    color: #fff; 
}
.status-display .desc { 
    color: #7f8c8d; 
    margin-top: 10px; 
}

/* --- DROPDOWN & DETAIL FUZZY --- */
.fuzzy-btn {
    width: 15px; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: transform 0.3s ease;
}
.fuzzy-content {
    display: none;
    padding: 15px;
}
.fuzzy-box {
    margin: 10px 10px 20px 10px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
}
.fuzzy-box-small {
    margin: 10px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
}
.fuzzy-title-center {
    color: #063B00;
    text-align: center;
    font-size: 20px;
}
.fuzzy-update-info {
    color: #063B00;
    text-align: center;
    margin-top: 3px;
    margin-bottom: 25px;
    font-size: 12px;
}
.fuzzy-subtitle-left {
    color: #063B00;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 16px;
}
.fuzzy-status-text {
    font-size: 13px;
    font-weight: 700;
    margin: 4px 0 8px 0;
}
.fuzzy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: left;
    font-size: 14px;
}
.fuzzy-card {
    background: #f5f5f5;
    color: #333333;
    padding: 10px;
    border-radius: 6px;
}
.fuzzy-card-title {
    margin-bottom: 3px;
    color: #333333;
}
.fuzzy-sub-header {
    display: block;
    text-align: center;
    border-bottom: 1px solid #b7c793;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.fuzzy-sub-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.fuzzy-sub-col {
    width: 33%;
    text-align: center;
}
.fuzzy-table {
    background: #e5fbaf;
    color: #333333;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
}
.fuzzy-table table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    border: none;
}
.fuzzy-table td:first-child {
    width: 45%;
}

/* --- PARAMETER CARDS GRID --- */
.params-row { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-bottom: 30px; 
}
.p-card { 
    padding: 25px; 
    border-radius: 20px; 
    color: #fff; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.p-card h2 { 
    font-size: 2.5rem; 
    margin-top: 5px; 
}
.ph, .ec, .water, .n, .p, .k, .temp { 
    background: #8FA31E; 
}

/* --- GRAPH AREA --- */
.graph-container { 
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
}
.graph-container h3 { 
    margin-bottom: 3px; 
    color: #2c3e50;
}
.graph-container h3 a {
    text-decoration: none;
    color: inherit;
}
.graph-container p a {
    color: #898989;
    font-size: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}
.canvas-wrapper { 
    height: 300px; 
    width: 100%; 
}

/* --- FOOTER & NOTES --- */
.footer-note { 
    text-align: left; 
    color: #584c33; 
    font-size: 0.6rem; 
    margin-top: 10px; 
}
.footer-foot { 
    display: flex; 
    gap: 20px;
    justify-content: center;
    align-items: center; 
    color: #fff;
    text-align: center; 
    height: 50px; 
    width: 100%;
    background-color: #063B00; 
    font-size: 0.6rem;
    padding: 18px;
    text-decoration: none;
}
.footer-foot a {
    text-decoration: none;
    color: #ccc;
}

/* --- RESPONSIVITAS SMARTPHONE & TABLET --- */
@media (max-width: 576px) {
    .fuzzy-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
@media screen and (max-width: 765px) {
    .params-row {
        grid-template-columns: 1fr; 
    }
    .tab-content {
        padding: 100px 20px 30px; 
    }
}