body {
    font-family: 'Segoe UI', Arial, sans-serif;
}

footer {
    background: #1b5e20;
    color: #f1f1f1;
}

footer a {
    color: #f1f1f1;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Login dan Register */

.auth-section{
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f5f5f5;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.auth-box h2 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 25px;
}

.auth-box .logo-kecil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-box .logo-kecil img {
    width: 35px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4caf50;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.btn-submit:hover {
    background: #388e3c;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.auth-link a {
    color: #2e7d32;
    font-weight: bold;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard Petugas */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}



.sidebar {
    width: 220px;
    background: #2e7d32;
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header{
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 10px;
    padding: 2px;
}

.sidebar-header span {
    font-weight: bold;
    font-size: 15px;
}

.sidebar-user {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.sidebar-user p {
    margin: 0;
    font-weight: bold;
}

.sidebar-user small {
    opacity: 0.75;
}

.sidebar nav {
    flex-direction: column;
    padding: 10px 0;
    display: flex;
}

.sidebar nav a {
    margin: 0;
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    border-left: 3px solid transparent;
    color: white;
    text-decoration: none;
    font-weight: normal;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-footer a {
    color: #ffcdd2;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.sidebar-footer a:hover {
    text-decoration: underline;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.topbar {
    background: white;
    padding: 15px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h3 {
    margin: 0;
    color: #2e7d32;
    font-size: 18px;
}

.content {
    padding: 25px;
    flex: 1;
}

.stat-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* stat-card versi sidebar (non-Bootstrap) */
.dashboard-wrapper .stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px 25px;
    flex: 1 1 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4caf50;
}

.dashboard-wrapper .stat-card h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
}

.dashboard-wrapper .stat-card .angka {
    font-size: 26px;
    font-weight: bold;
    color: #2e7d32;
}

.tabel-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.tabel-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2e7d32;
}

.tabel-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabel-box table th {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #c8e6c9;
}

.tabel-box table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.tabel-box table tr:last-child td {
    border-bottom: none;
}

.tabel-box table tr:hover td {
    background: #f9fbe7;
}

.btn-tambah {
    background: #4caf50;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.btn-tambah:hover {
    background: #388e3c;
}

.btn-hapus {
    background: #e53935;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.btn-hapus:hover {
    background: #b71c1c;
}

.btn-detail {
    background: #1565c0;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.btn-detail:hover {
    background: #0d47a1;
}

.btn-update {
    background: #15c051;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.btn-update:hover {
    background: #0da121;
}

.tabel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-box h3 {
    margin: 0 0 20px 0;
    color: #2e7d32;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-batal {
    background: #eee;
    color: #333;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-batal:hover {
    background: #ddd;
}

.btn-simpan {
    background: #4caf50;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.btn-simpan:hover {
    background: #388e3c;
}

/* Navbar Bootstrap pengguna */
.navbar-pengguna {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

.navbar-pengguna .nav-link,
.navbar-pengguna .navbar-brand {
    color: #fff !important;
}

.navbar-pengguna .nav-link.active {
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

.welcome-banner {
    background: linear-gradient(135deg, #a5d6a7, #e8f5e9);
    border-radius: 16px;
}

.stat-card {
    border: none;
    border-radius: 16px;
    transition: transform .15s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.card-rounded {
    border: none;
    border-radius: 16px;
}

.table thead {
    background: #e8f5e9;
}

.badge-jenis {
    background: #e8f5e9;
    color: #2e7d32;
}

.navbar-brand img {
    height: 40px;
    margin-right: 8px;
}

.hero {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: #fff;
}

.hero img {
    max-width: 100%;
    border-radius: 12px;
}

.card-layanan {
    border: none;
    border-radius: 12px;
    transition: transform .2s;
    height: 100%;
}

.card-layanan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: #2e7d32;
}

.btn-success {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

.btn-success:hover {
    background-color: #1b5e20 !important;
    border-color: #1b5e20 !important;
}


@media (max-width: 768px) {
    .page-classic header .site-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-classic nav {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        align-items: center;
    }

    .page-classic nav a {
        margin: 10px 0;
    }

    .page-classic .hero {
        padding: 30px 0;
    }

    .page-classic .hero .site-container {
        flex-direction: column;
        text-align: center;
    }

    .page-classic .hero img {
        margin-top: 20px;
        max-width: 100%;
        width: 100%;
    }

    .page-classic .hero-text {
        max-width: 100%;
    }

    .page-classic .hero-text h1 {
        font-size: 26px;
    }

    .page-classic .card {
        max-width: 100%;
    }

    .page-classic .layanan {
        padding: 30px 15px;
    }

    .auth-box {
        padding: 25px 20px;
    }

    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: column;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 5px;
    }

    .sidebar nav a {
        padding: 10px 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 13px;
    }

    .sidebar nav a:hover,
    .sidebar nav a.active {
        border-left: none;
        border-bottom-color: white;
    }

    .dashboard-wrapper .stat-card {
        flex: 1 1 140px;
    }

    .tabel-box {
        overflow-x: auto;
    }

    .topbar h3 {
        font-size: 15px;
    }

    .content {
        padding: 15px;
    }
}

/* ================================================================
   INDEX.PHP - LANDING PAGE BARU
================================================================ */

/* Navbar brand icon */
.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* HERO LANDING */
.hero-landing {
    background: linear-gradient(160deg, #f1f8e9 0%, #ffffff 60%);
    overflow: hidden;
    position: relative;
}

.min-vh-hero { min-height: 85vh; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: #1a1a2e;
}

.hero-subtitle { font-size: 1.05rem; line-height: 1.7; }

.hero-stat { padding: 0 12px; text-align: center; }
.hero-stat-num { font-size: 1.6rem; }
.hero-stat-label { font-size: 0.75rem; margin-top: 2px; }

/* Hero visual - floating cards */
.hero-visual {
    position: relative;
    width: 360px;
    height: 360px;
}

.hero-visual-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
    position: absolute;
}

.hero-visual-card.main-card {
    width: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-visual-card.mini-card {
    width: 160px;
    padding: 14px;
}

.mini-card.left-card  { top: 10%;  left: -10%; animation: float 3s ease-in-out infinite; }
.mini-card.right-card { bottom: 10%; right: -10%; animation: float 3s ease-in-out infinite 1.5s; }

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    background: #2e7d32;
}
.circle-1 { width: 300px; height: 300px; top: -60px; right: -60px; }
.circle-2 { width: 180px; height: 180px; bottom: -30px; left: -30px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* LAYANAN CARDS */
.layanan-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: transform .25s, box-shadow .25s;
    opacity: 0;
    transform: translateY(20px);
}
.layanan-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s ease, transform .4s ease, box-shadow .25s;
}
.layanan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,.09);
}

.layanan-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* CARA KERJA */
.cara-kerja-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #f0f0f0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}
.cara-kerja-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s ease, transform .4s ease;
}

.ck-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e8f5e9;
    line-height: 1;
    margin-bottom: 8px;
}
.ck-icon { font-size: 2rem; }
.ck-arrow {
    position: absolute;
    right: -20px;
    top: 40%;
    z-index: 1;
}

/* JENIS SAMPAH */
.jenis-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
    opacity: 0;
    transform: translateY(16px);
}
.jenis-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease, box-shadow .2s;
}
.jenis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
}
.jenis-emoji { font-size: 2rem; }

/* TENTANG - stats grid */
.tentang-visual {
    position: relative;
    padding: 20px;
}
.tentang-bg-shape {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 24px;
    z-index: 0;
}
.tentang-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
}
.ts-card {
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}
.ts-green  { background: #2e7d32; color: white; }
.ts-light  { background: white; }
.ts-num    { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.ts-label  { font-size: 0.75rem; margin-top: 4px; opacity: .85; }
.ts-green .ts-label { color: rgba(255,255,255,.75); }
.ts-light .ts-label { color: #888; }

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

/* FOOTER */
.footer-main {
    background: #1a2e1a;
}
.footer-text  { color: rgba(255,255,255,.55); }
.footer-link  { color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem; }
.footer-link:hover { color: #81c784; }
.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 1rem;
    transition: background .2s;
}
.footer-social:hover { background: #2e7d32; color: white; }

/* ================================================================
   LOGIN & REGISTER - SPLIT LAYOUT
================================================================ */

.auth-body { margin: 0; padding: 0; background: white; }

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    width: 42%;
    flex-shrink: 0;
    background: linear-gradient(150deg, #2e7d32, #1b5e20);
    padding: 48px 40px;
    display: flex;
    align-items: center;
}

.auth-left-content { max-width: 340px; }

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: white;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* ================================================================
   RESPONSIVE TAMBAHAN (tablet & mobile)
================================================================ */

/* --- Tablet: 768px - 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { font-size: 2rem; }
    .hero-visual { width: 280px; height: 280px; }
    .hero-visual-card.main-card { width: 230px; }
    .mini-card { width: 130px; font-size: .8rem; }

    .sidebar { width: 180px; }
    .sidebar nav a { font-size: 13px; padding: 10px 14px; }

    .tentang-stats-grid { gap: 10px; padding: 12px; }
    .ts-num { font-size: 1.4rem; }

    .auth-left { width: 38%; padding: 36px 28px; }
}

/* --- Mobile: max 768px --- */
@media (max-width: 768px) {
    /* Landing hero */
    .hero-landing { text-align: center; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: .95rem; }
    .hero-visual { width: 260px; height: 260px; margin: 0 auto; }
    .hero-visual-card.main-card { width: 210px; font-size: .85rem; }
    .mini-card { width: 120px; font-size: .78rem; }
    .mini-card.left-card  { left: -5%; }
    .mini-card.right-card { right: -5%; }
    .hero-stat { padding: 0 6px; }
    .hero-stat-num { font-size: 1.2rem; }
    .min-vh-hero { min-height: unset; }

    /* Tentang stats grid jadi 2 kolom kecil */
    .tentang-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
    .ts-num { font-size: 1.4rem; }

    /* Cara kerja: hapus arrow di mobile */
    .ck-arrow { display: none !important; }

    /* Auth split: full width satu kolom */
    .auth-split { flex-direction: column; }
    .auth-left  { display: none !important; }
    .auth-right { padding: 32px 20px; min-height: 100vh; justify-content: flex-start; padding-top: 40px; }
    .auth-form-wrap { max-width: 100%; }

    /* Dashboard sidebar responsive sudah ada di atas */

    /* Topbar */
    .topbar { flex-wrap: wrap; gap: 8px; }
    .topbar h3 { font-size: 14px; }

    /* Tabel scroll */
    .tabel-box { overflow-x: auto; }

    /* Card stat mobile */
    .stat-cards { flex-direction: column; }
    .dashboard-wrapper .stat-card { flex: unset; width: 100%; }

    /* Jenis card grid 2 kolom di mobile */
    .jenis-card { font-size: .85rem; }

    /* Footer navigasi */
    .footer-main .row > [class*="col-6"] { min-width: 50%; }

    /* Navbar brand */
    .navbar-brand { font-size: .9rem; }
}

/* --- Sangat kecil: max 480px --- */
@media (max-width: 480px) {
    .hero-title   { font-size: 1.5rem; }
    .hero-visual  { width: 220px; height: 220px; }
    .hero-visual-card.main-card { width: 180px; padding: 14px; }
    .mini-card    { width: 105px; padding: 10px; font-size: .72rem; }

    .content { padding: 12px; }
    .tabel-box { padding: 14px; }
    .modal-dialog { margin: 8px; }

    .btn-lg { font-size: .9rem; padding: .5rem 1rem; }
    .tentang-stats-grid { padding: 8px; gap: 8px; }
    .ts-card { padding: 16px 10px; }
    .ts-num  { font-size: 1.2rem; }
}
