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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}

/* Auth pages (login/register) styles */
body.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-info {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 12px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

.auth-info a,
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-info a:hover,
.auth-link:hover {
    color: #764ba2;
}

.error-message {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.loading {
    display: none;
    text-align: center;
    color: #667eea;
    font-size: 14px;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(73, 70, 236, 0.897);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-checkbox label {
    cursor: pointer;
    user-select: none;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 300px;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0);
}

.container {
    display: flex;
    height: calc(100vh - 60px);
    position: relative;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.open {
    display: block;
}

.sidebar h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-filler {
    flex: 1 1 auto;
}

.sidebar-menu-item {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 25px;
    font-weight: 500;
    /* text-align: center; */
}

.sidebar-menu-item:hover {
    background: #f0f4ff;
    border-left-color: #667eea;
}

.sidebar-menu-item.active {
    background: #f0f4ff;
    border-left-color: #667eea;
    color: #667eea;
}

.map-container {
    flex: 1;
    position: relative;
}

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

.info-section {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.marker-list {
    list-style: none;
}

.marker-list li {
    padding: 8px;
    margin-bottom: 8px;
    background: #f0f4ff;
    border-left: 3px solid #667eea;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.marker-list li:hover {
    background: #e8ecff;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .header-title {
        font-size: 18px;
    }

    .header-controls {
        gap: 10px;
    }

    .filter-checkbox label {
        display: none;
    }
}


.sidebar-menu .codicon {
    font-size: 30px !important;
    display: contents !important;
}

.sidebar-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.sidebar-preference-section {
    padding: 16px 20px;
}

.sidebar-preference {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sidebar-preference input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.sidebar-preference label {
    cursor: pointer;
    user-select: none;
    color: #333;
    margin: 0;
    font-size: large;
}