:root {
    --primary: #E67E22;
    --primary-dark: #D35400;
    --primary-light: #F39C12;
    --accent: #F5B041;
    --bg-light: #FFF9F0;
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
    --border-color: #F0E0CC;
    --shadow: 0 2px 15px rgba(230, 126, 34, 0.08);
    --shadow-lg: 0 8px 30px rgba(230, 126, 34, 0.12);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================== NAVBAR ===================== */
.navbar-lapor {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.navbar-lapor .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-lapor .navbar-brand img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}
.navbar-lapor .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}
.navbar-lapor .nav-link:hover,
.navbar-lapor .nav-link.active {
    color: var(--primary) !important;
    background: rgba(230, 126, 34, 0.08);
}
.navbar-lapor .navbar-toggler {
    border: none;
    padding: 0.4rem;
    color: var(--text-dark);
    font-size: 1.4rem;
    background: none;
    box-shadow: none !important;
}
.navbar-lapor .navbar-toggler:focus {
    box-shadow: none !important;
}

/* Mobile Offcanvas Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1070;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
}
.mobile-menu.show {
    right: 0;
}
.mobile-menu-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1.5rem 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.mobile-menu-header img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 4px;
}
.mobile-menu-header .menu-brand {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}
.mobile-menu-header .menu-brand small {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 2px;
}
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-menu-close:hover {
    background: rgba(255,255,255,0.35);
}
.mobile-menu-user {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-menu-user .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.mobile-menu-user .user-info {
    font-size: 0.88rem;
    line-height: 1.3;
}
.mobile-menu-user .user-info strong {
    display: block;
    color: var(--text-dark);
}
.mobile-menu-user .user-info span {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.mobile-menu-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}
.mobile-menu-nav .menu-label {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.mobile-menu-nav a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: #FFF5EB;
    color: var(--primary);
    border-left-color: var(--primary);
}
.mobile-menu-nav a:hover i,
.mobile-menu-nav a.active i {
    color: var(--primary);
}
.mobile-menu-nav a.menu-logout {
    color: #DC3545;
}
.mobile-menu-nav a.menu-logout i {
    color: #DC3545;
}
.mobile-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (min-width: 992px) {
    .mobile-menu, .mobile-menu-overlay, .btn-mobile-menu {
        display: none !important;
    }
}

/* ===================== HERO ===================== */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgePop {
    0%   { opacity: 0; transform: scale(0.7); }
    70%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-20px) rotate(8deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-14px) rotate(-6deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-18px) scale(1.06); }
}
@keyframes heroShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    background:
        linear-gradient(135deg,
            rgba(20,20,35,0.92) 0%,
            rgba(40,20,10,0.88) 40%,
            rgba(180,70,10,0.6) 75%,
            rgba(20,20,35,0.92) 100%),
        url('../img/bg.jpg') center center / cover no-repeat;
    background-size: 200% 200%, cover;
    animation: gradientShift 14s ease infinite;
    color: #fff;
    padding: 6rem 1rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

/* Noise texture overlay for depth */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(230,126,34,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,150,50,0.12) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Floating decorative circles */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.hero-orb-1 {
    width: 320px; height: 320px;
    top: -80px; left: -100px;
    background: radial-gradient(circle, rgba(230,126,34,0.18) 0%, transparent 70%);
    animation: float1 7s ease-in-out infinite;
}
.hero-orb-2 {
    width: 220px; height: 220px;
    bottom: -60px; right: -60px;
    background: radial-gradient(circle, rgba(230,126,34,0.14) 0%, transparent 70%);
    animation: float2 9s ease-in-out infinite;
}
.hero-orb-3 {
    width: 140px; height: 140px;
    top: 30%; right: 12%;
    background: radial-gradient(circle, rgba(255,180,80,0.12) 0%, transparent 70%);
    animation: float3 5s ease-in-out infinite;
}

/* Badge above title */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.4rem;
    animation: heroBadgePop 0.7s cubic-bezier(.34,1.56,.64,1) both;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
    animation: blinkCursor 2s infinite;
    flex-shrink: 0;
}

/* Main title */
.hero-section h1 {
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.7s 0.1s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title-highlight {
    background: linear-gradient(90deg, #FFA040, #FFD080, #FFA040);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroShimmer 3s linear infinite;
    display: inline-block;
}

/* Typing subtitle */
.hero-typing-wrapper {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-bottom: 0.5rem;
    animation: heroFadeUp 0.7s 0.25s both;
    min-height: 1.8rem;
    position: relative;
    z-index: 2;
}
.hero-typing-text {
    color: #FFD080;
    font-weight: 700;
}
.hero-typing-cursor {
    display: inline-block;
    width: 2px; height: 1.1em;
    background: #FFD080;
    margin-left: 2px;
    vertical-align: middle;
    border-radius: 2px;
    animation: blinkCursor 0.75s step-end infinite;
}

.hero-section p.hero-sub {
    font-size: 0.95rem;
    opacity: 0.75;
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.7s 0.35s both;
}

/* Buttons */
.hero-section .btn-row {
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.7s 0.5s both;
}
.hero-section .btn-hero {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 0.75rem 2.2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    transition: all 0.28s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.hero-section .btn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
    border-radius: 50px;
}
.hero-section .btn-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 32px rgba(0,0,0,0.25);
}
.hero-section .btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: 700;
    padding: 0.73rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.28s cubic-bezier(.34,1.56,.64,1);
}
.hero-section .btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.45;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: heroFadeUp 1s 1s both;
}
.hero-scroll-arrow {
    width: 22px; height: 22px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: float2 1.4s ease-in-out infinite;
}

/* ===================== CARDS ===================== */
.card-lapor {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}
.card-lapor .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.card-lapor:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card-lapor .card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
}
.card-lapor .card-header i {
    margin-right: 8px;
}

/* ===================== BUTTONS ===================== */
.btn-primary-lapor {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s;
}
.btn-primary-lapor:hover {
    background: linear-gradient(135deg, var(--primary-dark), #B7410E);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}
.btn-outline-lapor {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.5rem;
    background: transparent;
    transition: all 0.3s;
}
.btn-outline-lapor:hover {
    background: var(--primary);
    color: #fff;
}

/* ===================== FORMS ===================== */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.15);
}
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.65rem 1rem;
}
.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.input-group-text {
    background: var(--bg-light);
    border-color: #ddd;
    color: var(--primary);
}

/* ===================== AUTH PAGES ===================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF9F0 0%, #FDEBD0 50%, #FAD7A0 100%);
    padding: 1.5rem;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(230, 126, 34, 0.12);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2rem;
}
.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card .auth-logo img {
    height: 64px;
    margin-bottom: 0.75rem;
}
.auth-card .auth-logo h4 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.auth-card .auth-logo p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ===================== SIDEBAR ADMIN ===================== */
.sidebar-admin {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s;
    overflow-y: auto;
}
.sidebar-admin .sidebar-brand {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.sidebar-admin .sidebar-brand img {
    height: 40px;
}
.sidebar-admin .sidebar-brand span {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}
.sidebar-admin .nav-section {
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
}
.sidebar-admin .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-admin .nav-link:hover,
.sidebar-admin .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border-left-color: #fff;
}
.sidebar-admin .nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0;
}
.admin-topbar {
    background: #fff;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.admin-topbar .btn-toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
}
.admin-main {
    padding: 1.5rem;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}
.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-card .stat-info h3 {
    font-weight: 800;
    margin: 0;
    font-size: 1.5rem;
}
.stat-card .stat-info p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===================== TABLE ===================== */
.table-lapor thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.table-lapor thead th {
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    padding: 0.75rem;
    white-space: nowrap;
}
.table-lapor tbody td {
    vertical-align: middle;
    font-size: 0.88rem;
    padding: 0.7rem 0.75rem;
}
.table-lapor tbody tr {
    transition: background 0.2s;
}
.table-lapor tbody tr:hover {
    background: #FFF5EB;
}

/* ===================== PENGADUAN LIST ===================== */
.pengaduan-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.pengaduan-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.pengaduan-card .pengaduan-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.pengaduan-card .pengaduan-meta .kategori-badge {
    background: #FFF3E0;
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.pengaduan-card h5 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}
.pengaduan-card .pengaduan-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pengaduan-card .pengaduan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pengaduan-card .pengaduan-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===================== STATUS BADGES ===================== */
.badge-terkirim {
    background: #EFF6FF;
    color: #2563EB;
    font-size: 0.75rem;
    padding: 0.3em 0.7em;
    border-radius: 20px;
    font-weight: 600;
}
.badge-ditanggapi {
    background: #F0FDF4;
    color: #16A34A;
    font-size: 0.75rem;
    padding: 0.3em 0.7em;
    border-radius: 20px;
    font-weight: 600;
}

/* ===================== WELCOME BANNER ===================== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.welcome-banner::after {
    content: '\F52A';
    font-family: 'Bootstrap-Icons';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 6rem;
    opacity: 0.1;
    line-height: 1;
}
.welcome-banner .welcome-sub {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}
.welcome-banner h4 {
    font-weight: 800;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}
.welcome-banner p {
    font-size: 0.82rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

/* ===================== MINI STATS ===================== */
.stat-mini {
    --accent: var(--primary);
    background: #fff;
    border-radius: 14px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
}
.stat-mini i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    display: block;
}
.stat-mini h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}
.stat-mini p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

/* ===================== LAPORAN LIST ITEMS ===================== */
.laporan-item {
    display: block;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.laporan-item:hover, .laporan-item:active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(230,126,34,0.12);
    color: inherit;
    text-decoration: none;
}
.laporan-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.laporan-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.laporan-item-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.6rem;
}
.laporan-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.kategori-pill {
    background: #FFF3E0;
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

/* ===================== FILTER TABS ===================== */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #fff;
    border: 1.5px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}
.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ebebeb;
    z-index: 1000;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.07);
    height: 62px;
    align-items: stretch;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #aaa;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.18s;
    padding: 0;
    border: none;
    background: none;
}
.bottom-nav-item i {
    font-size: 1.35rem;
    line-height: 1;
    display: block;
}
.bottom-nav-item span {
    display: block;
    line-height: 1;
}
.bottom-nav-item.active {
    color: var(--primary);
}
/* Center FAB slot */
.bottom-nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bottom-nav-write {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(230,126,34,0.45);
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
    border: 3px solid #fff;
}
.bottom-nav-write:hover, .bottom-nav-write:active {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(230,126,34,0.55);
    color: #fff;
}
.bottom-nav-write i {
    font-size: 1.3rem;
    display: block;
}

/* ===================== DETAIL ===================== */
.detail-foto {
    border-radius: var(--radius);
    max-width: 100%;
    box-shadow: var(--shadow);
}

/* Hero bar */
.detail-hero {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.kategori-pill-lg {
    background: #FFF3E0;
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.detail-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.detail-hero-info {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.detail-hero-info span { display: flex; align-items: center; gap: 4px; }

/* Section label */
.detail-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Isi laporan */
.detail-isi {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.25rem;
}

/* Tanggapan bubble */
.tanggapan-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.tanggapan-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.35;
}
.tanggapan-empty p { margin: 0; font-size: 0.88rem; }
.tanggapan-bubble {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.tanggapan-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.tanggapan-body {
    flex: 1;
    background: #FFF9F0;
    border: 1px solid #F5DEB2;
    border-radius: 0 12px 12px 12px;
    padding: 0.85rem 1rem;
}
.tanggapan-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.tanggapan-header small { font-size: 0.75rem; }
.tanggapan-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Reply form */
.reply-form {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

/* Pelapor profile */
.pelapor-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.pelapor-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pelapor-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.pelapor-username { font-size: 0.78rem; color: var(--text-muted); }
.pelapor-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 0.85rem;
    gap: 0.5rem;
}
.pelapor-detail-row:last-child { border-bottom: none; }
.pelapor-label { color: var(--text-muted); font-size: 0.8rem; display: flex; align-items: center; flex-shrink: 0; }

/* Status indicator */
.status-indicator {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
}
.status-indicator i { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.status-indicator strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.status-indicator p { margin: 0; font-size: 0.78rem; line-height: 1.4; }
.status-ok {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
}
.status-ok i { color: #16A34A; }
.status-pending {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
}
.status-pending i { color: #2563EB; }

/* ===================== ADMIN DASHBOARD ===================== */
.admin-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.admin-dash-header h5 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.15rem;
}
.admin-dash-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.admin-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1rem 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.18s, box-shadow 0.18s;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}
.admin-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
}
.admin-stat-val {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.admin-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.admin-stat-badge {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: #FEF9C3;
    color: #854D0E;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}
.admin-progress-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.admin-laporan-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.admin-laporan-row:last-child { border-bottom: none; }
.admin-laporan-row:hover { background: #FFF9F5; }
.admin-laporan-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-laporan-body {
    flex: 1;
    min-width: 0;
}
.admin-laporan-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-laporan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.admin-laporan-status { flex-shrink: 0; }
.admin-laporan-arrow {
    color: #ccc;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* tanggapan-item kept for backward compat */
.tanggapan-item {
    background: #FFF9F0;
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.75rem;
}

/* ===================== FOOTER ===================== */
.footer-lapor {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
}
body {
    padding-bottom: 56px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    .sidebar-admin {
        transform: translateX(-100%);
    }
    .sidebar-admin.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .admin-topbar .btn-toggle-sidebar {
        display: block;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1035;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-section { padding: 4rem 1rem 3.5rem; min-height: 380px; }
    .hero-section h1 { font-size: 1.7rem; }
    .hero-badge { font-size: 0.75rem; }
    .hero-orb-1 { width: 200px; height: 200px; }
    .hero-orb-2 { width: 140px; height: 140px; }
    .hero-orb-3 { display: none; }
    .auth-card { padding: 1.75rem 1.25rem; }
    .stat-card { padding: 1rem; }
    .stat-card .stat-info h3 { font-size: 1.25rem; }
    .container { padding-left: 12px; padding-right: 12px; }

    /* Table mobile: compact, no action column */
    .table-lapor th, .table-lapor td {
        font-size: 0.78rem;
        padding: 0.5rem 0.4rem;
    }
    .table-lapor .col-action {
        display: none;
    }
    .table-lapor tbody tr {
        cursor: pointer;
    }

    /* Bottom nav visible on mobile */
    .bottom-nav {
        display: flex;
    }
    /* Hide fixed footer on mobile — bottom nav takes its place */
    .footer-lapor {
        display: none;
    }
    /* Add space so content isn't hidden behind bottom nav */
    body.has-bottom-nav {
        padding-bottom: 80px;
    }
    /* Hide top navbar links on mobile (bottom nav handles it) */
    .navbar-lapor .collapse { display: none !important; }
    /* Hide hamburger - bottom nav replaces it */
    .btn-mobile-menu { display: none !important; }
}

/* Scrollbar */
.sidebar-admin::-webkit-scrollbar { width: 4px; }
.sidebar-admin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* ===================== NAVBAR AVATAR DROPDOWN ===================== */
.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.25rem 0.25rem;
    border-radius: 30px;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark) !important;
}
/* Desktop: tambah border & background */
@media (min-width: 992px) {
    .nav-avatar-btn {
        padding: 0.3rem 0.6rem;
        background: var(--bg-light);
        border: 1.5px solid var(--border-color);
    }
    .nav-avatar-btn:hover,
    .nav-avatar-btn.show {
        background: #FFF5EB;
        border-color: var(--primary);
    }
}
/* Mobile: hanya avatar bulat, tidak ada teks/border box */
@media (max-width: 991.98px) {
    .nav-avatar-btn {
        padding: 0.15rem;
    }
    .nav-avatar-btn:hover { opacity: 0.85; }
}
.nav-avatar-btn::after { display: none !important; } /* hapus caret default Bootstrap */
.nav-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    flex-shrink: 0;
    background: var(--border-color);
}
.nav-avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.nav-avatar-name {
    font-size: 0.86rem;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-avatar-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.nav-avatar-btn.show .nav-avatar-chevron,
.nav-avatar-btn[aria-expanded="true"] .nav-avatar-chevron {
    transform: rotate(180deg);
}
/* Dropdown panel */
.nav-avatar-dropdown {
    min-width: 230px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    overflow: hidden;
    margin-top: 6px !important;
}
.nav-avatar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #FFF9F0, #FFF5EB);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}
.nav-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.nav-avatar-lg-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-avatar-profile-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.2;
}
.nav-avatar-profile-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}
/* Dropdown items */
.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    color: var(--text-dark) !important;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}
.nav-dd-item i { font-size: 1rem; width: 18px; text-align: center; color: var(--text-muted); }
.nav-dd-item:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}
.nav-dd-item:hover i { color: var(--primary); }
.nav-dd-logout { color: #DC3545 !important; }
.nav-dd-logout i { color: #DC3545 !important; }
.nav-dd-logout:hover { background: #FFF5F5 !important; color: #DC3545 !important; }

/* ===================== BOTTOM NAV AVATAR ===================== */
.bottom-nav-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
    transition: border-color 0.18s;
}
.bottom-nav-item.active .bottom-nav-avatar-wrap {
    border-color: var(--primary);
}
.bottom-nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bottom-nav-avatar-init {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ===================== SETTINGS PAGE ===================== */
.settings-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto;
}
.settings-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: block;
}
.settings-avatar-fallback {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.settings-avatar-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.settings-avatar-badge-ai {
    background: #7C3AED;
}
/* Password strength bar */
.pw-strength-bar {
    height: 5px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 3px;
}
.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.3s, background 0.3s;
}

