/* Core CSS Variables and Tokens */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #090d16;
    --bg-surface: rgba(17, 24, 39, 0.85);
    --bg-surface-solid: #111827;
    --bg-input: #1f2937;
    
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --primary-hover: #34d399;
    
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.4);
    
    --accent-amber: #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.4);
    
    --accent-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.2);
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

/* App Container */
#app {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.9) 0%, rgba(9, 13, 22, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    pointer-events: none;
}

.logo-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.logo-icon {
    font-size: 1.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary));
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, var(--text-primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-status {
    pointer-events: auto;
    display: flex;
    gap: 8px;
}

.status-badge {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-premium);
}

.status-badge i {
    font-size: 0.75rem;
}

.status-badge.gps-active {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.status-badge.sync-ready {
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
    cursor: pointer;
}

.status-badge.sync-dirty {
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.3);
    cursor: pointer;
    animation: pulse-border 2s infinite;
}

/* Map Container */
#map-container {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Leaflet Overrides for Dark Mode */
.leaflet-container {
    background: #0d121f !important;
}

.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-premium) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background-color: var(--bg-surface-solid) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: var(--transition-fast);
}

.leaflet-bar a:hover {
    background-color: var(--bg-input) !important;
    color: var(--primary) !important;
}

.leaflet-control-attribution {
    background: rgba(9, 13, 22, 0.7) !important;
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
    backdrop-filter: var(--glass-blur);
}

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

/* Custom Leaflet Marker Icons */
.custom-gps-marker {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-pulse-ring {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 1.5px solid var(--accent-blue);
    animation: gps-pulse 2s infinite ease-out;
}

.gps-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-blue);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    z-index: 2;
}

.gps-heading-cone {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid rgba(59, 130, 246, 0.4);
    bottom: 50%;
    transform-origin: 50% 100%;
    z-index: 1;
}

.custom-plant-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-solid);
    border: 2px solid var(--primary);
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: var(--transition-fast);
}

.custom-plant-marker.active-target {
    border-color: var(--accent-amber) !important;
    box-shadow: 0 0 15px var(--accent-amber-glow) !important;
    animation: marker-bounce 1s infinite alternate;
}

.custom-plant-marker i {
    font-size: 1rem;
}

/* Floating HUDs and Controls */

/* Search Panel */
.search-floating-panel {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    z-index: 999;
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px 14px;
    box-shadow: var(--shadow-premium);
}

.search-input-wrapper i {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.95rem;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.05);
}

/* Floating Action Buttons Group (FABs) */
.fabs-group {
    position: absolute;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.fab-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
}

.fab-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 16px var(--primary-glow);
    transform: scale(1.05);
}

.fab-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.fab-secondary:hover {
    background: var(--bg-input);
    color: var(--primary-hover);
    transform: scale(1.05);
}

.fab-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-amber);
    color: var(--bg-base);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid var(--bg-base);
}

/* Live Navigation HUD */
.nav-hud {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    z-index: 1001;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), var(--shadow-premium);
    border-radius: 20px;
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
    display: none; /* Controlled by JS */
    animation: slide-down 0.3s ease-out;
}

.nav-hud-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.compass-dial-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.compass-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 24px solid var(--accent-amber);
    transform-origin: 50% 70%;
    transform: rotate(0deg);
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 0 4px var(--accent-amber-glow));
}

.nav-info {
    flex: 1;
}

.nav-target-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.nav-metrics {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.nav-distance {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--accent-amber);
    letter-spacing: -0.5px;
}

.nav-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-direction-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.nav-close-btn {
    background: rgba(239, 68, 110, 0.15);
    border: none;
    color: var(--accent-red);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-close-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Bottom Sheet Drawers */
.bottom-sheet {
    position: absolute;
    bottom: -100%; /* Hidden by default */
    left: 0;
    right: 0;
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1000;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet.open {
    bottom: 0;
}

.sheet-handle {
    width: 100%;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
}

.sheet-header {
    padding: 0 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sheet-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sheet-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sheet-close:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Plant Directory Card List */
.plant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plant-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.plant-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.plant-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--bg-base);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
}

.plant-card-info {
    flex: 1;
    min-width: 0;
}

.plant-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plant-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.plant-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.plant-type-badge.durian { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.plant-type-badge.pineapple { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.plant-type-badge.rambutan { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.plant-type-badge.coconut { background: rgba(16, 185, 129, 0.15); color: var(--primary); }
.plant-type-badge.other { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

.plant-card-distance {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-plants {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-plants i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Detail Sheet Styles */
.detail-photo-gallery {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    background-color: var(--bg-base);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    overflow: hidden;
}

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

.detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-meta-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 12px;
}

.detail-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.detail-meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.detail-actions {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.btn {
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* Comments Section */
.comments-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.comments-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 999px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.comment-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
}

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

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.comment-delete:hover {
    color: var(--accent-red);
}

.comment-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
}

.add-comment-form {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.comment-input:focus {
    border-color: var(--primary);
}

.comment-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.comment-submit-btn:hover {
    background: var(--primary-hover);
}

/* Forms styling */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-input, .form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary);
}

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

.btn-coords {
    grid-column: span 2;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 8px;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.btn-coords:hover {
    background: var(--accent-blue);
    color: white;
}

/* Camera Input / Photo Selector */
.photo-input-container {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    background-color: var(--bg-input);
}

.photo-input-container:hover {
    border-color: var(--primary);
}

.photo-input-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.photo-input-placeholder i {
    font-size: 2rem;
    color: var(--text-muted);
}

.photo-input-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.photo-input-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 0.8rem;
}

/* Settings Menu Drawer styling */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.settings-group:last-child {
    border-bottom: none;
}

.settings-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.setting-label-block {
    display: flex;
    flex-direction: column;
}

.setting-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: white;
}

.settings-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* Notifications Toast */
.toast-container {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 320px;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1.5px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    animation: toast-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); color: var(--primary-hover); }
.toast.info { border-color: rgba(59, 130, 246, 0.5); color: var(--accent-blue); }
.toast.warn { border-color: rgba(245, 158, 11, 0.5); color: var(--accent-amber); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: var(--accent-red); }

/* Animations */
@keyframes gps-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes marker-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

@keyframes pulse-border {
    0% { border-color: rgba(245, 158, 11, 0.3); }
    50% { border-color: rgba(245, 158, 11, 0.8); box-shadow: 0 0 8px var(--accent-amber-glow); }
    100% { border-color: rgba(245, 158, 11, 0.3); }
}

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

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

/* Custom Scrollbar for beautiful lists */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}
