/* Custom Premium CSS for Basemap Extractor */

:root {
    --bg-main: #09090b;
    --bg-sidebar: #0f0f12;
    --card-bg: rgba(22, 22, 26, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-stack: 'Product Sans', 'Google Sans', sans-serif;
    --glow-violet: rgba(59, 130, 246, 0.08);
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Common Components */
.badge {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.badge-serverless {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    margin-left: 0;
    margin-top: 8px;
    display: inline-block;
}

.zoom-badge {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Screens toggles */
.screen {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.screen.active {
    display: flex;
}

/* LOGIN SCREEN STYLE */
#login-screen {
    justify-content: center;
    align-items: center;
    background-color: var(--bg-main);
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-violet) 0%, rgba(99, 102, 241, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.1);
}

.brand {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.google-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.dev-bypass-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    line-height: 1.4;
    width: 100%;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn-primary:disabled {
    background: #27272a;
    color: #71717a;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background-color: #27272a;
    color: #f4f4f5;
    border: 1px solid #3f3f46;
}

.btn-secondary:hover {
    background-color: #3f3f46;
}

.btn-secondary-small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    background-color: #27272a;
    color: #f4f4f5;
    border: 1px solid #3f3f46;
}

.btn-secondary-small:hover {
    background-color: #3f3f46;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-full-width {
    width: 100%;
}

/* MAIN DASHBOARD STRUCTURE */
#app-screen {
    flex-direction: column;
}

.app-header {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.brand-icon {
    font-size: 35px;
    width: 35px;
    height: 35px;
    color: #2b63dc;
    margin: 10px 0 10px 5px;
}

.header-left h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.8);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

.btn-logout {
    padding: 8px 12px;
    border-radius: 50%;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* DASHBOARD MAIN LAYOUT */
.app-content {
    display: flex;
    flex: 1;
    height: calc(100vh - 60px);
    position: relative;
}

.sidebar-panel {
    display: none !important; /* Disembunyikan sesuai permintaan karena semua kontrol pindah ke atas */
}



.map-panel {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
    width: 100%;
    z-index: 1;
    background-color: #1e293b;
    min-height: 0;
}

/* CARDS */
.control-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0px;
}

.card-header-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-with-action h3 {
    margin-bottom: 0;
}

/* FORMS AND INPUTS */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

select,
input[type="text"],
input[type="number"] {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f4f4f5;
    font-family: var(--font-stack);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.15s ease;
    width: 100%;
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background-color: #09090b;
}

.dock-zoom-slider {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding: 0 10px;
    height: 40px;
    background: transparent;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.dock-zoom-slider:hover,
.dock-zoom-slider:focus-within {
    background-color: #d1d5db;
}

.dock-zoom-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent); /* base biru globe */
    min-width: 30px;
    text-align: center;
}

.slider-track-container {
    position: relative;
    width: 180px; /* Diperpanjang agar titik-titik tidak terlalu mepet */
    height: 24px;
    display: flex;
    align-items: center;
}

.slider-track-container::before {
    content: '';
    position: absolute;
    left: 7px; /* Half of thumb width */
    right: 7px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    left: 7px;
    right: 7px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.slider-dots .dot {
    width: 4px;
    height: 4px;
    background-color: #94a3b8;
    border-radius: 50%;
}

.slider-track-container input[type="range"] {
    position: absolute;
    width: 100%;
    margin: 0;
    z-index: 3;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.slider-track-container input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.slider-track-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* COORDINATES LAYOUT */
.coordinates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.coord-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coord-field label {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.coord-field input {
    padding: 6px;
    font-size: 0.8rem;
    text-align: center;
}

/* ZOOM SELECTOR */
.zoom-range-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.zoom-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zoom-labels label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#zoom-range-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.zoom-sliders {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.range-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-slider label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 65px;
}

.range-slider input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    transition: transform 0.1s;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ESTIMATIONS */
.estimate-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-val {
    font-weight: 600;
    color: var(--text-primary);
}

#est-file-size {
    color: var(--accent);
}

.size-warning {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #00000CCC;
    font-size: 12px;
    font-weight: 400;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
    max-width: 420px;
}

.size-warning i {
    font-size: 1.25rem;
    color: #00000CCC;
    margin-top: 1px;
}

.sidebar-actions {
    margin-top: auto;
}

/* FLOATING SEARCH BOX OVERLAY */
.search-overlay {
    position: relative;
    display: flex;
    align-items: center;
    width: max-content;
    margin-left: 20px;
    background: #f0f4f9;
    border: none;
    border-radius: 50px;
    padding: 4px;
}

.icon-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: auto;
    padding: 0 10px;
    height: 40px;
    background-color: transparent;
    border: none;
    border-radius: 20px;
    color: #505352;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 4px;
    margin-right: 4px;
    transition: all 0.2s ease;
}

.icon-action-btn:hover {
    background-color: #d1d5db;
    transform: scale(1.03);
}

.icon-action-btn.active {
    background-color: var(--accent);
    color: white;
}

.icon-action-btn.active:hover {
    background-color: var(--accent-hover);
}

.icon-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: transparent;
    transform: none;
}

.standalone-dock-btn {
    background-color: #f0f4f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.standalone-dock-btn:active {
    background-color: #6b7280;
    color: white;
}

.standalone-dock-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.header-estimate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 10px;
    font-weight: 400;
    color: #00000CCC;
    line-height: 1.4;
    background-color: transparent;
    padding: 0 12px;
    margin-right: 4px;
    min-width: 100px;
}

.header-est-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.header-est-label {
    color: #00000CCC;
    font-weight: 400;
    opacity: 0.8;
}

.header-est-val {
    color: #00000CCC;
    font-weight: 400;
}

.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.action-menu-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 350px;
    z-index: 2000;
    padding: 8px 0;
}

.dropdown-group {
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.dropdown-group:first-child {
    margin-top: 0;
}

.search-item.active {
    background-color: transparent;
    font-weight: 600; /* Semi-bold for selected item */
}

.search-box {
    display: flex;
    width: 340px;
    align-items: center;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 4px 8px 4px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    margin-right: 2px;
}

.search-icon {
    color: var(--text-secondary);
    margin-left: 8px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px;
    color: #333333;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.search-box input:focus {
    box-shadow: none;
    border: none;
    background-color: transparent;
}

.search-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--accent-hover);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-item {
    padding: 10px 14px;
    font-size: 12px;
    color: #333333;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.1s;
    line-height: 1.4;
    word-break: break-word;
}

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

.search-item:hover {
    background-color: #f9fafb;
}

/* DOWNLOAD CONSOLE & PROGRESS OVERLAY (Toast Notification Style) */
.download-overlay {
    position: absolute;
    bottom: 50px;
    right: 20px;
    width: auto;
    height: auto;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    pointer-events: none; /* Allows clicking on the map beneath it */
}

.progress-card {
    background: #ffffff;
    color: #00000CCC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    width: 420px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    gap: 12px;
    pointer-events: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 12px;
}

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

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-header h4 {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    color: #00000CCC;
}

#progress-percentage {
    font-size: 12px;
    font-weight: bold;
    color: var(--accent);
}

.progress-bar-container {
    height: 6px;
    background: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #a855f7 100%);
    border-radius: 9999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: rgba(0, 0, 0, 0.6);
}

#progress-message {
    display: none;
}

.console-log {
    display: none; /* Hidden for clean notification UI */
}

.log-line {
    line-height: 1.4;
}

.log-line.system {
    color: #9ca3af;
}

.log-line.info {
    color: #60a5fa;
}

.log-line.success {
    color: #34d399;
}

.log-line.error {
    color: #f87171;
}

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

/* CUSTOM LEAFLET CONTROLS STYLING FOR DARK MODE */
.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-bar a {
    background-color: #111827 !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background-color 0.2s;
}

.leaflet-bar a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.leaflet-bar a.leaflet-disabled {
    background-color: #1f2937 !important;
    color: var(--text-secondary) !important;
}

.leaflet-control-attribution {
    background: rgba(17, 24, 39, 0.8) !important;
    color: var(--text-secondary) !important;
}

.leaflet-control-attribution a {
    color: var(--accent) !important;
}

/* Map Footer Bar */
.map-footer-bar {
    height: 28px;
    flex-shrink: 0;
    width: 100%;
    background: #f5f5f5; /* Solid background */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 11px;
    color: #444;
    pointer-events: auto;
    border-top: 1px solid #ddd;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-left .brand-text {
    font-weight: 500;
    color: #333;
    font-size: 11.5px;
}

.footer-link {
    color: #444;
    text-decoration: underline;
    pointer-events: auto;
}

.footer-link:hover {
    color: #111;
}

.scale-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
}

.scale-bar {
    width: 60px;
    height: 4px;
    border: 1px solid #666;
    border-top: none;
    margin-bottom: 2px;
}

/* MOBILE RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .app-header {
        height: auto;
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .header-left {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .header-left h2 {
        display: none;
    }

    .search-overlay {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }

    .search-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .map-footer-bar {
        flex-direction: column;
        height: auto;
        padding: 5px 10px;
        gap: 5px;
    }

    .footer-left, .footer-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar-panel {
        width: 280px;
    }
}

/* MOBILE USAGE WARNING */
#portrait-warning {
    display: none;
}

@media screen and (max-width: 768px) {
    #app-screen {
        display: none !important;
    }
    
    #portrait-warning {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        width: 100vw;
        background-color: var(--bg-main);
        color: var(--text-primary);
        text-align: center;
        padding: 20px;
        z-index: 9999;
    }

    #portrait-warning i {
        font-size: 4rem;
        color: var(--accent);
        margin-bottom: 20px;
        animation: pulseIcon 2s ease-in-out infinite;
    }

    @keyframes pulseIcon {
        0% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(0.95); }
        100% { opacity: 1; transform: scale(1); }
    }
}
/* Custom styling for download settings modal */
#modal-file-name:focus {
    border-color: #d1d5db !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}

#btn-start-extraction {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

#btn-start-extraction:hover,
#btn-start-extraction:active {
    background-color: #1d4ed8 !important;
}

/* Block text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input[type='text'], input[type='number'], textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}
