/* assets/css/style.css */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Color Variables */
:root {
    --primary: #1F6B4F;
    --primary-dark: #164f3a;
    --primary-light: #2c8564;
    --secondary: #E8F3ED;
    --accent: #E8B44F;
    --accent-dark: #d4a03b;
    --bg-color: #F8FAF9;
    --text-color: #17221D;
    --text-muted: #5e6f65;
    --card-bg: #ffffff;
    --border-color: #e2e8e5;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #ef6c00;
    --info: #1565c0;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(23, 34, 29, 0.05);
    --shadow-lg: 0 10px 25px rgba(23, 34, 29, 0.08);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #d8eada;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-color);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: #f1f5f3;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* Header & Public Navbar */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: var(--transition);
}

.nav-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
    max-height: 380px;
    object-fit: cover;
}

/* Section Common */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.section-header h2 {
    margin-bottom: 12px;
}

/* Statistics Section */
.stats-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-md);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Cards & UI Elements */
.card-el {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card-el:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-img {
    height: 180px;
    overflow: hidden;
    background-color: #eaeff2;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-orange { background-color: #ffe8cc; color: #ef6c00; }
.badge-green { background-color: #e2f0d9; color: #2e7d32; }
.badge-blue { background-color: #e0f2fe; color: #1565c0; }
.badge-purple { background-color: #f3e8ff; color: #6b21a8; }
.badge-red { background-color: #ffe4e6; color: #be123c; }
.badge-teal { background-color: #ccfbf1; color: #0f766e; }

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Alerts & Alerts Boxes */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: rgba(31, 107, 79, 0.2);
}

.alert-danger {
    background-color: #fdf2f2;
    color: var(--danger);
    border-color: rgba(198, 40, 40, 0.15);
}

.alert-warning {
    background-color: #fff8e1;
    color: var(--warning);
    border-color: rgba(239, 108, 0, 0.15);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding-left: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.empty-state h3 {
    margin-bottom: 8px;
    font-weight: 600;
}

/* WebGIS Layout (Interactive Map Page) */
.webgis-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.webgis-sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.filter-category-select-wrap {
    display: none;
    margin-bottom: 16px;
}

.filter-category-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background-color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    appearance: auto;
}

.filter-category-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.15);
}

.filter-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn:hover {
    background-color: #f1f5f3;
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-color-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

.indicator-orange { background-color: #ef6c00; }
.indicator-green { background-color: #2e7d32; }
.indicator-blue { background-color: #1565c0; }
.indicator-purple { background-color: #6b21a8; }
.indicator-red { background-color: #be123c; }
.indicator-teal { background-color: #0f766e; }

.webgis-results-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.webgis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webgis-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.webgis-item:hover {
    border-color: var(--primary);
    background-color: var(--secondary);
}

.webgis-item h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.webgis-item p {
    font-size: 0.8rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webgis-map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Popup Style */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 280px !important;
}

.map-popup-card {
    display: flex;
    flex-direction: column;
}

.map-popup-img {
    height: 120px;
    background-color: #eaeff2;
    overflow: hidden;
}

.map-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-popup-body {
    padding: 15px;
}

.map-popup-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.map-popup-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

.map-popup-addr {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.map-popup-btn {
    text-align: center;
    background-color: var(--primary);
    color: white !important;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
}

.map-popup-btn:hover {
    background-color: var(--primary-dark);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background-color: #ffffff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Detail Potensi */
.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 30px;
}

.detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #eaeff2;
    height: 380px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.detail-meta-list {
    list-style: none;
    margin-bottom: 24px;
}

.detail-meta-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.detail-meta-item:last-child {
    border-bottom: none;
}

.detail-meta-label {
    width: 120px;
    font-weight: 700;
    color: var(--text-color);
}

.detail-meta-val {
    color: var(--text-muted);
    flex: 1;
}

.mini-map-container {
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

#mini-map {
    height: 100%;
    width: 100%;
}

/* ==========================================================================
   Admin Dashboard Layout & Design System
   ========================================================================== */

:root {
    --admin-primary: #1b5e43;
    --admin-primary-dark: #12402e;
    --admin-primary-light: #2a835f;
    --admin-primary-subtle: #eaf5ef;
    --admin-bg: #f4f7f5;
    --admin-surface: #ffffff;
    --admin-border: #e2e8e4;
    --admin-text: #14221b;
    --admin-text-muted: #5e7066;
    --admin-sidebar-width: 270px;
    --admin-topbar-height: 68px;
}

/* Admin Shell Layout */
.admin-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background-color: var(--admin-bg);
    width: 100%;
    position: relative;
    align-items: stretch;
}

/* Admin Sidebar */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    min-width: var(--admin-sidebar-width);
    max-width: var(--admin-sidebar-width);
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1020;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(20, 34, 27, 0.03);
}

.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 18px;
    overflow-y: auto;
}

/* Brand Section */
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--admin-border);
    margin-bottom: 20px;
    text-decoration: none;
}

.admin-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-light));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 10px rgba(27, 94, 67, 0.25);
    flex-shrink: 0;
}

.admin-brand-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1.2;
    margin: 0;
}

.admin-brand-info p {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--admin-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 3px 0 0 0;
}

/* Admin User Card in Sidebar */
.admin-user-card {
    background: var(--admin-primary-subtle);
    border: 1px solid #d3e7dc;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.admin-user-details {
    overflow: hidden;
    flex: 1;
}

.admin-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--admin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Navigation Groups */
.admin-nav-group {
    margin-bottom: 20px;
}

.admin-nav-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8c9e94;
    padding: 0 12px 8px 12px;
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--admin-text);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.admin-nav-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-link-content i {
    font-size: 1.15rem;
    color: var(--admin-text-muted);
    transition: var(--transition);
}

.admin-nav-link:hover {
    background-color: #f0f5f2;
    color: var(--admin-primary);
}

.admin-nav-link:hover .admin-nav-link-content i {
    color: var(--admin-primary);
}

.admin-nav-link.active {
    background: linear-gradient(90deg, var(--admin-primary-subtle), #ffffff);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
    font-weight: 700;
}

.admin-nav-link.active .admin-nav-link-content i {
    color: var(--admin-primary);
}

.admin-nav-badge {
    background-color: #e2e8e4;
    color: var(--admin-text);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    transition: var(--transition);
}

.admin-nav-link.active .admin-nav-badge {
    background-color: var(--admin-primary);
    color: #ffffff;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-sidebar-footer .admin-nav-link {
    font-size: 0.85rem;
}

.admin-nav-link.logout-link {
    color: var(--danger);
}

.admin-nav-link.logout-link:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}

.admin-nav-link.logout-link i {
    color: var(--danger);
}

/* Admin Main Wrapper */
.admin-main {
    flex: 1 1 auto;
    width: calc(100% - var(--admin-sidebar-width));
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background-color: var(--admin-bg);
}

/* Admin Topbar */
.admin-topbar {
    height: var(--admin-topbar-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--admin-text);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-mobile-toggle:hover {
    background: var(--admin-primary-subtle);
    color: var(--admin-primary);
}

.admin-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--admin-text-muted);
}

.admin-breadcrumbs a {
    color: var(--admin-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.admin-breadcrumbs a:hover {
    color: var(--admin-primary);
}

.admin-breadcrumbs .breadcrumb-separator {
    font-size: 0.75rem;
    color: #a0aec0;
}

.admin-breadcrumbs .breadcrumb-current {
    font-weight: 700;
    color: var(--admin-text);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-date-pill {
    background: #f1f5f3;
    border: 1px solid var(--admin-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar-date-pill i {
    color: var(--admin-primary);
}

/* Admin Main Content Container */
.admin-content {
    flex: 1;
    padding: 30px 32px 40px 32px;
    max-width: 1600px;
    width: 100%;
}

/* Page Header */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-page-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--admin-text);
    letter-spacing: -0.3px;
    margin: 0;
}

.admin-page-subtitle {
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Welcome Banner */
.admin-welcome-banner {
    background: linear-gradient(135deg, #1b5e43 0%, #227b58 100%);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    color: #ffffff;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(27, 94, 67, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.admin-welcome-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.welcome-banner-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-banner-text {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 650px;
    line-height: 1.5;
    margin-bottom: 0;
}

.welcome-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-banner-white {
    background: #ffffff;
    color: var(--admin-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-banner-white:hover {
    background: #f8faf9;
    color: var(--admin-primary-dark);
    transform: translateY(-1px);
}

.btn-banner-outline {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Stat Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(20, 34, 27, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(20, 34, 27, 0.07);
    border-color: #cbd5cf;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.stat-icon-green { background: #eaf5ef; color: var(--admin-primary); }
.stat-icon-amber { background: #fef3c7; color: #b45309; }
.stat-icon-orange { background: #ffedd5; color: #c2410c; }
.stat-icon-emerald { background: #dcfce7; color: #15803d; }
.stat-icon-blue { background: #e0f2fe; color: #0369a1; }

.stat-card-body {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-card-val {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1;
}

.stat-card-unit {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text-muted);
}

.stat-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f3;
    font-size: 0.78rem;
    color: var(--admin-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-footer a {
    color: var(--admin-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* Interactive Mini GIS Map Widget on Dashboard */
.admin-dashboard-map-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(20, 34, 27, 0.03);
}

.admin-dashboard-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-dashboard-map-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.admin-dashboard-map-container {
    height: 340px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--admin-border);
    position: relative;
    z-index: 1;
}

#dashboardMiniMap {
    width: 100%;
    height: 100%;
}

/* Category Distribution List */
.category-dist-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-dist-item {
    background: #fafbfc;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition);
}

.cat-dist-item:hover {
    background: #f4f7f5;
}

.cat-dist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cat-dist-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-dist-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--admin-primary);
    background: var(--admin-primary-subtle);
    padding: 2px 8px;
    border-radius: 10px;
}

.cat-dist-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.cat-dist-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Color Swatches & Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.status-active {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Category Badge Colors */
.badge-blue { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-orange { background-color: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-green { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-purple { background-color: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-red { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-teal { background-color: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }
.badge-yellow { background-color: #fef9c3; color: #a16207; border: 1px solid #fef08a; }

/* Admin Tables */
.table-responsive {
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--admin-border);
    box-shadow: 0 2px 8px rgba(20, 34, 27, 0.03);
    margin-bottom: 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.table th, .table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.table th {
    background-color: #f9fbfa;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--admin-text-muted);
}

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

.table tbody tr:hover {
    background-color: #f6faf8;
}

.table-img {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: #eaeff2;
    border: 1px solid var(--admin-border);
    transition: transform 0.2s ease;
}

.table-img:hover {
    transform: scale(1.1);
}

/* Action Buttons in Tables */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-table-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-table-icon:hover {
    background: #f3f4f6;
    color: var(--admin-text);
}

.btn-table-icon.edit-icon:hover {
    background: var(--admin-primary-subtle);
    color: var(--admin-primary);
    border-color: #a7f3d0;
}

.btn-table-icon.delete-icon:hover {
    background: #fee2e2;
    color: var(--danger);
    border-color: #fecaca;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #25d366;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-1px);
}

/* Visual Color Swatch Selector for Categories */
.color-swatch-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.color-swatch-card {
    border: 2px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    user-select: none;
}

.color-swatch-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.color-swatch-card.selected {
    border-color: var(--admin-primary);
    background-color: var(--admin-primary-subtle);
    box-shadow: 0 0 0 2px rgba(27, 94, 67, 0.2);
}

.color-swatch-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pin-blue { background: #0284c7; }
.pin-orange { background: #ea580c; }
.pin-green { background: #16a34a; }
.pin-purple { background: #9333ea; }
.pin-red { background: #dc2626; }
.pin-teal { background: #0d9488; }
.pin-yellow { background: #ca8a04; }

.color-swatch-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--admin-text);
}

/* Map Picker Container on Forms */
.map-picker-container {
    height: 350px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--admin-border);
    position: relative;
}

#map-picker {
    height: 100%;
    width: 100%;
}

.map-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.map-layer-switch {
    display: inline-flex;
    background: #e9ecef;
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--admin-border);
}

.map-layer-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.map-layer-btn.active {
    background: #ffffff;
    color: var(--admin-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 700;
}

.btn-gps {
    background-color: #ffffff;
    border: 1px solid var(--admin-primary);
    color: var(--admin-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gps:hover {
    background-color: var(--admin-primary);
    color: #ffffff;
}

/* Modern File Dropzone & Image Preview */
.photo-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.photo-dropzone:hover {
    border-color: var(--admin-primary);
    background: #f5f9f6;
}

.dropzone-icon {
    font-size: 2.2rem;
    color: var(--admin-primary);
    margin-bottom: 8px;
}

.dropzone-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.dropzone-hint {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

.upload-preview-card {
    display: none;
    margin-top: 14px;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    background: #ffffff;
    align-items: center;
    gap: 14px;
}

.upload-preview-card.show {
    display: flex;
}

.upload-preview-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--admin-border);
}

/* Modern Login Page Styling */
.login-body {
    background: radial-gradient(circle at 10% 20%, #eaf4ee 0%, #f4f7f5 80%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(27, 94, 67, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.login-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(20, 34, 27, 0.08), 0 1px 3px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 440px;
    padding: 42px 36px;
    border: 1px solid #dbe5df;
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-light));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 16px rgba(27, 94, 67, 0.3);
    margin-bottom: 16px;
}

.login-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--admin-text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    line-height: 1.5;
}

.input-with-icon {
    position: relative;
}

.input-leading-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--admin-primary);
}

.login-security-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f3;
}

/* Footer styling */
footer {
    background-color: #17221D;
    color: #a3b1a8;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #a3b1a8;
}

.footer-link:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .webgis-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .webgis-sidebar {
        height: 380px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }
    
    /* Mobile Category Dropdown Selector */
    .filter-category-select-wrap {
        display: block;
        margin-bottom: 14px;
    }
    
    .filter-categories {
        display: none !important;
    }
    
    .webgis-map-container {
        height: calc(100vh - 450px);
        min-height: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Responsive Leaflet Popup on Small Viewports */
    .leaflet-popup-content {
        width: 240px !important;
    }
    
    .map-popup-card {
        width: 240px;
    }
}

/* Custom Deletion Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(23, 34, 29, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.custom-modal {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 440px;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    text-align: center;
}
.modal-overlay.active .custom-modal {
    transform: scale(1);
}
.modal-icon {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 12px;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}
.modal-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Inline Validation Errors */
.form-error-inline {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* Form Visual Grouping */
.form-group-section {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.form-group-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
}

/* Upload Image Previewer */
.upload-preview-container {
    margin-top: 10px;
    display: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 180px;
    height: 130px;
    background-color: #eaeff2;
}
.upload-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admin Mobile Top Header Bar */
.admin-mobile-header {
    display: none;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    justify-content: space-between;
}

/* Admin Responsive Mobile Drawer */
@media (max-width: 992px) {
    .admin-mobile-toggle {
        display: inline-flex !important;
    }
    
    .admin-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        height: 100vh !important;
        z-index: 1060;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(20, 34, 27, 0.15);
    }
    
    .admin-sidebar.active {
        transform: translateX(0) !important;
    }
    
    .admin-main {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(18, 32, 25, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1050;
    }
    
    .admin-sidebar-overlay.active {
        display: block;
    }
    
    .admin-topbar {
        padding: 0 18px !important;
    }
    
    .admin-content {
        padding: 20px 16px !important;
    }
    
    .welcome-banner-actions {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar-date-pill {
        display: none;
    }
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-header-actions {
        width: 100%;
    }
    .admin-header-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Prevent root horizontal overflows */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Mobile Stats Grid Overrides */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Table-to-Card Responsive Layout for Mobile */
@media (max-width: 768px) {
    .responsive-table-cards thead {
        display: none !important;
    }
    .responsive-table-cards tr {
        display: block !important;
        background-color: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
    }
    .responsive-table-cards td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border-bottom: 1px solid var(--bg-color) !important;
        font-size: 0.88rem;
        text-align: right !important;
    }
    .responsive-table-cards td:last-child {
        border-bottom: none !important;
        padding-top: 12px !important;
        justify-content: center !important;
    }
    .responsive-table-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        font-size: 0.78rem;
        text-transform: uppercase;
        float: left;
        margin-right: 15px;
        text-align: left;
    }
    .responsive-table-cards .actions-cell {
        justify-content: flex-end !important;
    }
}

/* Mobile Stats Layout (2 columns grid) */
@media (max-width: 768px) {
    .stats-section .grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
}
@media (max-width: 480px) {
    .stats-section .grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ==========================================================================
   Modern Admin Interface Utilities & Enhancements
   ========================================================================== */

/* Standard Admin Card Container */
.admin-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: 0 2px 8px rgba(20, 34, 27, 0.03);
    transition: var(--transition);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--admin-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-subtitle {
    font-size: 0.82rem;
    color: var(--admin-text-muted);
    margin: 3px 0 0 0;
}

/* Responsive Dashboard Two-Column Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Responsive Form Two-Column Grid (Metadata + Map) */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 992px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Quick Counter Stats Strip */
.quick-stats-strip {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-stat-item {
    flex: 1;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(20, 34, 27, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-stat-item:hover {
    transform: translateY(-2px);
    border-color: #cbd5cf;
}

.quick-stat-item .label {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quick-stat-item .val {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1;
    margin-top: 4px;
}

.quick-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Modern Filter & Search Bar */
.admin-filter-bar {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(20, 34, 27, 0.02);
}

.admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.filter-field-search {
    flex: 2;
    min-width: 240px;
}

.filter-field-select {
    flex: 1.2;
    min-width: 170px;
}

.filter-field-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .admin-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-field-search, .filter-field-select, .filter-field-actions {
        width: 100%;
        min-width: 100%;
    }
    .filter-field-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Quick Filter Status Chips */
.admin-filter-chips {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--admin-text-muted);
    background: #f1f5f3;
    border: 1px solid var(--admin-border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-chip:hover {
    background: #e2ece6;
    color: var(--admin-text);
}

.filter-chip.active {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
}

.filter-chip .chip-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Map Legend Bar on Dashboard */
.map-legend-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: #fafcfb;
    border-top: 1px solid var(--admin-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

/* Sticky Action Bar for Long Forms */
.admin-sticky-actions {
    position: sticky;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--admin-border);
    box-shadow: 0 10px 30px rgba(20, 34, 27, 0.12);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    margin-top: 28px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Admin Help / Information Cards */
.admin-help-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.admin-help-icon {
    font-size: 1.5rem;
    color: var(--admin-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.admin-help-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #166534;
    margin-bottom: 4px;
}

.admin-help-text {
    font-size: 0.85rem;
    color: #15803d;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   PROFIL DESA CILEDUG LOR SPECIFIC STYLES
   ========================================================================== */

/* Profile Badge */
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--secondary);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 50px;
    border: 1px solid rgba(31, 107, 79, 0.2);
    margin-bottom: 18px;
}

.profile-hero {
    padding: 70px 0 60px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f5 100%);
    border-bottom: 1px solid var(--border-color);
}

.profile-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.profile-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.profile-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 18px;
    line-height: 1.4;
}

.profile-hero-desc {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0;
}

.profile-hero-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
    background-color: #e5ece8;
    aspect-ratio: 16/9;
}

.profile-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.profile-hero-img-wrap:hover img {
    transform: scale(1.02);
}

.profile-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(23, 34, 29, 0.85));
    color: #ffffff;
    padding: 20px 20px 14px 20px;
    font-size: 0.85rem;
}

/* Stats Cards */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.profile-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 107, 79, 0.3);
}

.profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.profile-stat-num {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Administrative Table / Grid */
.admin-data-table {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border-collapse: collapse;
}

.admin-data-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.admin-data-table tr:last-child {
    border-bottom: none;
}

.admin-data-table tr:hover {
    background-color: #fbfdfc;
}

.admin-data-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
}

.admin-data-table td.label-col {
    width: 40%;
    font-weight: 600;
    color: var(--text-color);
    background-color: #fafcfb;
    border-right: 1px solid var(--border-color);
}

.admin-data-table td.val-col {
    font-weight: 500;
    color: #24332c;
}

.admin-notice-box {
    background-color: #fef9ee;
    border: 1px solid #f6e0b3;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.admin-notice-box i {
    color: var(--accent-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-notice-box p {
    margin: 0;
    font-size: 0.88rem;
    color: #785208;
    line-height: 1.5;
}

/* Pembagian Wilayah Dusun Cards */
.dusun-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.dusun-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dusun-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.dusun-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--secondary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
}

.dusun-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.dusun-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Cardinal Directions / Batas Wilayah */
.cardinal-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.cardinal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.cardinal-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cardinal-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cardinal-dir-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.cardinal-target {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.35;
}

/* History Section & Historical Note */
.history-note-card {
    background: #f8faf9;
    border: 1px solid #d5e5dc;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin-top: 30px;
}

.history-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.history-note-badge {
    background-color: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-note-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* Pottery Products Grid */
.pottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.pottery-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pottery-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d1b48c;
}

.pottery-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pottery-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.pottery-item-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #fdf5eb;
    color: #9c5812;
}

.pottery-item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Strategic Directions (4 Pillars) */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.roadmap-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.roadmap-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.roadmap-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.roadmap-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.roadmap-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Call to Action Banner */
.profile-cta-box {
    background: linear-gradient(135deg, #18523c 0%, var(--primary) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.profile-cta-box h2 {
    color: #ffffff;
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.profile-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 28px auto;
    line-height: 1.65;
}

.profile-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-white {
    background-color: #ffffff;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-white:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-cta-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Sources Attribution Section */
.profile-sources-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-top: 40px;
}

.profile-sources-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-sources-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    padding: 0;
    margin: 0;
}

.profile-sources-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-sources-list li i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Map reference box */
.geo-reference-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f3;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--primary-dark);
}

/* Responsive Breakpoints for Profil Page */
@media (max-width: 992px) {
    .profile-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dusun-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pottery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-sources-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-hero {
        padding: 40px 0;
    }
    .profile-hero-content h1 {
        font-size: 2.1rem;
    }
    .profile-hero-subtitle {
        font-size: 1.05rem;
    }
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    .cardinal-layout {
        grid-template-columns: 1fr;
    }
    .dusun-grid {
        grid-template-columns: 1fr;
    }
    .pottery-grid {
        grid-template-columns: 1fr;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    .profile-cta-box {
        padding: 35px 20px;
    }
    .profile-cta-box h2 {
        font-size: 1.6rem;
    }
    .admin-data-table td {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   UMKM REGISTRATION & WHATSAPP INTEGRATION STYLES
   ========================================================================== */

.umkm-register-section {
    margin-top: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.umkm-register-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 30px auto;
}

.umkm-register-header h3 {
    font-size: 1.85rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.umkm-register-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.umkm-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.umkm-step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.umkm-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #22c55e;
}

.umkm-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 14px auto;
}

.umkm-step-card h4 {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.umkm-step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.umkm-action-box {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: var(--radius-md);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #1ebd59;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Floating WhatsApp Button */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: var(--transition);
    border: 2px solid #ffffff;
    text-decoration: none;
}

.floating-wa-btn:hover {
    background-color: #1ebd59;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

@media (max-width: 768px) {
    .umkm-register-section {
        padding: 26px 18px;
    }
    .umkm-steps-grid {
        grid-template-columns: 1fr;
    }
    .umkm-action-box {
        flex-direction: column;
        text-align: center;
    }
    .floating-wa-btn span {
        display: none;
    }
    .floating-wa-btn {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.5rem;
    }
}



