/* ==================== Font Imports ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== Global ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --navbar-height: 70px;
    --primary-navy: #0f172a;
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-emerald: #10b981;
    --primary-accent: #0ea5e9;
    --secondary-color: #10b981;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --soft-bg: #f8fafc;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--soft-bg) 0%, #f1f5f9 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ==================== Main Content & Dashboard ==================== */
.main-content {
    margin-top: var(--navbar-height);
    padding: 32px;
    background: var(--soft-bg);
    min-height: calc(100vh - var(--navbar-height));
}

.title-sheet {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.alert-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: var(--primary-navy);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Dashboard Grid */
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Dashboard Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition-smooth);
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.dashboard-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

.dashboard-card .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 16px;
    flex-shrink: 0;
}

.dashboard-card .icon-box.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
}

.dashboard-card .icon-box.sky {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.06) 100%);
}

/* Summary Grid */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.summary-item {
    padding: 20px;
    background: var(--soft-bg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.summary-item:hover {
    border-color: var(--primary-accent);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
}

.summary-item h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-item.emerald h3 {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-item.danger h3 {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-item p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==================== Navbar ==================== */
.navbar {
    background: #ffffff;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    z-index: 10;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.navbar-brand {
    color: #000000;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000000;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.navbar-nav a.active,
.navbar-nav a:hover {
    opacity: 1;
    color: #0ea5e9;
    border-bottom: 2px solid #0ea5e9;
}

/* ==================== Navbar User Dropdown ==================== */
.navbar-user {  
    margin-left: auto;
    padding-bottom: 6px;
    position: relative;
    -webkit-text-fill-color: #000000;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.user-dropdown:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.dropdown-icon[class*="rotate"],
.dropdown-icon.rotate {
    transform: rotate(180deg);
}

[x-cloak] { 
    display: none !important; 
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.dropdown-menu a,
.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    color: #0f172a;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f8fafc;
    color: #0ea5e9;
}

/* ==================== Guest Navigation ==================== */
.navbar-nav-guest {
    display: flex;
    gap: 12px;
    align-items: center;
}

.navbar-nav-guest a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 32px;
    border-bottom: 3px solid transparent;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.navbar-nav-guest a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #0ea5e9;
    border-bottom: 2px solid #0ea5e9;
}

/* ==================== Navbar Toggle (Mobile) ==================== */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #000000;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.navbar-toggle svg {
    width: 100%;
    height: 100%;
}

/* ==================== Mobile Menu Backdrop ==================== */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
    animation: fadeIn 0.2s ease-out;
    display: block !important;
}

.navbar-backdrop[style*="display: none"] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== Mobile Menu ==================== */
.navbar-mobile {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    animation: slideInDown 0.3s ease-out;
}

.navbar-mobile[style*="display: none"] {
    display: none !important;
    animation: slideOutUp 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #0f172a;
    width: 32px;
    height: 32px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.mobile-link {
    padding: 14px 20px;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
    border-left: 4px solid transparent;
}

.mobile-link:hover {
    background-color: #f1f5f9;
    color: #0ea5e9;
    border-left-color: #0ea5e9;
}

.mobile-link.active {
    background-color: #e0f2fe;
    color: #0ea5e9;
    border-left-color: #0ea5e9;
    font-weight: 500;
}

.logout-btn {
    color: #ef4444;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: #fee2e2;
}

.mobile-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.mobile-user-section {
    padding: 16px 20px 12px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* ==================== Desktop Navigation ==================== */
@media (min-width: 769px) {
    .navbar-nav {
        display: flex !important;
    }

    .navbar-user {
        display: block !important;
    }

    .navbar-toggle {
        display: none !important;
    }

    .navbar-mobile {
        display: none !important;
    }

    .navbar-backdrop {
        display: none !important;
    }
}

.main-content {
    margin-top: 70px;
    padding: 40px 30px 30px 30px;
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        gap: 12px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-nav {
        display: none !important;
    }

    .navbar-nav-guest {
        display: none !important;
    }

    .navbar-user {
        display: none !important;
    }

    .navbar-toggle {
        display: block !important;
    }

    .navbar-mobile {
        display: flex !important;
    }

    .navbar-mobile[style*="display: none"] {
        display: none !important;
    }

    .navbar-backdrop {
        display: block !important;
    }

    .navbar-backdrop[style*="display: none"] {
        display: none !important;
    }

    .main-content {
        padding: 20px 15px 20px 15px;
    }
}

/* ==================== Typography ==================== */
h1, h2, h3 {
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

.title-sheet {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 24px;
    font-family: 'inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 25px;
}

/* ==================== Buttons ==================== */
.btn-add, .btn-submit, .btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary-accent) 0%, #0284c7 100%);
    color: white;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    margin-bottom: 10px;
}

.btn-add:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-add:active {
    transform: translateY(-1px);
}

.btn-add.emerald {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-add.emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: white;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-back {
    background: linear-gradient(135deg, #94a3b8 0%, #78716c 100%);
    color: white;
    margin-left: 10px;
    margin-top: 20px;
    height: 38px;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.3);
}

.btn-back:hover {
    background: linear-gradient(135deg, #78716c 0%, #64748b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 163, 184, 0.4);
}

.pagination {
    display: flex;
    gap: 25px;
}

.btn-detail {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    height: 30px;
    width: 100%;
    padding-top: 5px;
    position: relative;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.modal-close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
    line-height: 1;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.modal-close-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==================== Table ==================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: left;
    padding: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 14px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

tbody tr {
    transition: background-color 0.2s ease;
    background-color: #fff;
}

tbody tr:hover {
    background-color: #f8fafc;
}

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

/* ==================== Badges ==================== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.yes {
    background: #d1fae5;
    color: #047857;
}

.no {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== infrastruktur detail ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    background: white;
    padding: 30px;
    width: 85%;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    animation: slideUp 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== Actions ==================== */
.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-edit {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    height: 30px;
    padding-top: 5px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    height: 30px;
    padding-top: 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #0f172a;
    font-size: 0.9rem;
}

.required::after {
    content: ' *';
    color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0ea5e9;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ==================== Utilities ==================== */
.muted {
    color: #64748b;
    font-size: 0.85rem;
}

strong {
    color: #0f172a;
    font-weight: 600;
}

/* ==================== Filter Form ==================== */
.filter-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #0f172a;
    font-size: 0.9rem;
}

.filter-group input[type="text"],
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #0f172a;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.filter-group input::placeholder {
    color: #94a3b8;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions .btn-submit,
.filter-actions .btn-back {
    padding: 10px 20px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.filter-actions .btn-submit {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.filter-actions .btn-submit:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.filter-actions .btn-back {
    background: linear-gradient(135deg, #94a3b8 0%, #78716c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}

.filter-actions .btn-back:hover {
    background: linear-gradient(135deg, #78716c 0%, #64748b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4);
}

/* ==================== Map Layout ==================== */
.map-container {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 380px;
    bottom: 0;
    z-index: 1;
}

#map {
    height: 100% !important;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    z-index: 1;
}

.sidebar-fixed {
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    width: 380px;
    height: calc(100vh - var(--navbar-height));
    background: #fff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-container {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fdfdfd;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ==================== Category Filter ==================== */
.category-filter-container {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.category-dropdown-wrapper {
    position: relative;
}

.category-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-dropdown-btn:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    color: #0ea5e9;
}

.filter-icon {
    font-size: 0.95rem;
    font-weight: bold;
}

.filter-label {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.category-dropdown-btn[class*="active"] .dropdown-arrow,
.category-dropdown-menu.active ~ .category-dropdown-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.category-dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.category-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.category-option:last-child {
    border-bottom: none;
}

.category-option:hover {
    background-color: #f8fafc;
}

.category-option.active {
    background-color: #eff6ff;
    border-left: 3px solid #0ea5e9;
    padding-left: calc(0.9rem - 3px);
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.category-option.active .category-name {
    color: #0ea5e9;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.4rem;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.category-option:hover .category-badge {
    background: #d1d5db;
}

.category-option.active .category-badge {
    background: #0ea5e9;
    color: #fff;
}

.location-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.location-list-title {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.location-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.location-item:hover {
    background-color: #f8fafc;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.location-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.location-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0ea5e9;
    background: #eff6ff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.location-coords {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.coord-value {
    font-family: monospace, sans-serif;
    color: #0ea5e9;
    font-weight: 500;
}

.mobile-toggle-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    body {
        padding: 15px 0;
    }

    .container {
        padding: 15px;
        border-radius: 8px;
        margin: 0 10px;
    }

    .filter-form {
        padding: 15px;
        margin-bottom: 20px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn-submit,
    .filter-actions .btn-back {
        width: 100%;
        justify-content: center;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 1.1rem;
    }

    .btn-add {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }

    th, td {
        padding: 8px;
        font-size: 0.75rem;
    }

    .actions {
        flex-direction: column;
        gap: 5px;
    }

    .btn {
        width: 100%;
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-submit,
    .btn-back {
        width: 100%;
        margin-left: 0;
    }

    /* Map mobile layout */
    .map-container {
        right: 0;
    }

    .sidebar-fixed {
        right: -100%;
        width: 320px;
        max-width: 85vw;
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-fixed.open {
        right: 0;
    }

    .sidebar-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
        background: #fff;
    }

    .sidebar-header h3 {
        margin: 0;
        font-size: 1.1rem;
        color: #2c3e50;
    }

    .close-btn {
        background: #f3f4f6;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: #4b5563;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .close-btn:hover {
        background: #e5e7eb;
    }

    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 24px;
        left: 95%;
        transform: translateX(-50%);
        z-index: 900;
        background: #0066cc;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 12px 24px;
        font-size: 0.95rem;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }

    .container {
        padding: 12px;
        margin: 0 8px;
    }

    h2, h3 {
        margin-bottom: 12px;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .btn-add {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 6px 4px;
    }

    .badge {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .btn {
        padding: 5px 6px;
        font-size: 0.65rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}