* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f9fafb;
    --dark: #1f2937;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark mode variables */
.dark-mode {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary: #a78bfa;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --light: #1f2937;
    --dark: #f9fafb;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-600: #9ca3af;
    --gray-900: #f9fafb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

body {
    background-color: var(--gray-100);
    color: var(--gray-900);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.dark-mode .login-container {
    background: var(--gray-200);
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--gray-900);
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: var(--gray-900);
}

.dark-mode .login-form input {
    background: var(--gray-200);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: var(--primary-dark);
}

.login-options {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
}

.login-options a {
    color: var(--primary);
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
}

.dark-mode .header {
    background: var(--gray-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.app-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    position: relative;
}

.dark-mode .header-btn {
    background: var(--gray-300);
    color: var(--gray-600);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #34d399, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Location Banner */
.location-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    border-radius: 12px;
}

/* Main Content */
 .main-content {
    padding: 16px 0 96px;
}

/* Search & Filter */
.search-container {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: white;
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.dark-mode .search-input {
    background: var(--gray-200);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.dark-mode .category-btn {
    background: var(--gray-300);
    color: var(--gray-600);
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

/* Post Card - TikTok Style */
.post-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 500px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.post-type.event { background: var(--primary); }
.post-type.discovery { background: var(--secondary); }
.post-type.challenge { background: var(--success); }

/* TikTok-style overlay info at bottom left */
.post-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 60px;
    padding: 20px;
    background: none; /* remove dark fade overlay */
    color: white;
}

.post-title-overlay {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    font-size: 12px;
}

/* Vertical action buttons on the right */
.post-actions-vertical {
    position: absolute;
    right: 12px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.action-btn-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.action-btn-vertical:hover {
    transform: scale(1.15);
}

.action-btn-vertical i {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.action-btn-vertical span {
    font-size: 12px;
    font-weight: 600;
}

.action-btn-vertical.heart:hover {
    color: #ef4444;
}

.post-location {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.dark-mode .post-location {
    background: rgba(31, 41, 55, 0.9);
    color: var(--gray-600);
}

.post-content {
    padding: 16px;
}

.post-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--gray-900);
}

.dark-mode .post-title {
    color: var(--gray-900);
}

.post-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-group {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-600);
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn.heart:hover { color: var(--danger); }
.action-btn.comment:hover { color: var(--primary); }
.action-btn.rsvp:hover { color: var(--success); }

/* User Profile Card */
.user-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.dark-mode .user-card {
    background: var(--gray-200);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--gray-900);
}

.dark-mode .user-name {
    color: var(--gray-900);
}

.user-stats {
    font-size: 12px;
    color: var(--gray-600);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.follow-btn, .contact-btn {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.follow-btn {
    background: var(--primary);
    color: white;
}

.contact-btn {
    background: var(--gray-100);
    color: var(--gray-900);
}

.dark-mode .contact-btn {
    background: var(--gray-300);
    color: var(--gray-900);
}

.following-btn {
    background: var(--gray-200);
    color: var(--gray-600);
}

.dark-mode .following-btn {
    background: var(--gray-300);
    color: var(--gray-600);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    max-width: 500px;
    margin: 0 auto;
}

.dark-mode .bottom-nav {
    background: var(--gray-200);
    border-top-color: var(--gray-300);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 10px;
    color: var(--gray-600);
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 20px;
}

.add-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    margin-top: -24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.dark-mode .modal {
    background: var(--gray-200);
}

.modal-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.dark-mode .modal-header {
    border-bottom-color: var(--gray-300);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.dark-mode .modal-title {
    color: var(--gray-900);
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
}

.modal-content {
    padding: 24px;
}

.post-type-option {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.dark-mode .post-type-option {
    border-color: var(--gray-300);
}

.post-type-option:hover {
    border-color: var(--primary);
    background: var(--gray-100);
}

.dark-mode .post-type-option:hover {
    background: var(--gray-300);
}

.post-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.post-type-icon.event { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.post-type-icon.discovery { background: rgba(139, 92, 246, 0.1); color: var(--secondary); }
.post-type-icon.challenge { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.post-type-info h3 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.dark-mode .post-type-info h3 {
    color: var(--gray-900);
}

.post-type-info p {
    font-size: 12px;
    color: var(--gray-600);
}

.form-group {
    margin-bottom: 16px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: var(--gray-900);
}

.dark-mode .form-input, .dark-mode .form-textarea {
    background: var(--gray-200);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.hashtag-group {
    display: flex;
    gap: 8px;
}

.hashtag-input {
    flex: 1;
}

.hashtag-btn {
    width: 40px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
}

.dark-mode .hashtag-btn {
    background: var(--gray-300);
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: none;
    border: none;
    margin-bottom: 16px;
    cursor: pointer;
    font-weight: 600;
}

.image-upload {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.dark-mode .image-upload {
    border-color: var(--gray-300);
}

.image-upload:hover {
    border-color: var(--primary);
}

.image-upload i {
    font-size: 32px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.dark-mode .image-upload i {
    color: var(--gray-600);
}

.image-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
    display: none;
}

/* Location Prompt Modal */
.location-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.location-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.dark-mode .location-modal {
    background: var(--gray-200);
}

.location-modal h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.dark-mode .location-modal h2 {
    color: var(--gray-900);
}

.location-modal p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
}

.location-buttons {
    display: flex;
    gap: 12px;
}

.location-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.allow-btn {
    background: var(--primary);
    color: white;
}

.manual-btn {
    background: var(--gray-100);
    color: var(--gray-900);
}

.dark-mode .manual-btn {
    background: var(--gray-300);
    color: var(--gray-900);
}

.manual-input {
    margin-top: 16px;
    display: none;
}

.manual-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    color: var(--gray-900);
}

.dark-mode .manual-input input {
    background: var(--gray-200);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

/* Hidden Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Profile View */
.profile-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.dark-mode .profile-card {
    background: var(--gray-200);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #34d399, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 16px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.dark-mode .profile-name {
    color: var(--gray-900);
}

.profile-level {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-600);
}

.stat-value.points { color: var(--primary); }
.stat-value.streak { color: var(--warning); }

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.badge {
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.dark-mode .badge {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
}

.profile-section {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.dark-mode .profile-section {
    background: var(--gray-200);
}

.section-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.dark-mode .section-title {
    color: var(--gray-900);
}

.section-text {
    color: var(--gray-600);
    font-size: 14px;
}

/* Sale Cards - Special Layout */
.sale-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.dark-mode .sale-card {
    background: var(--gray-200);
}

.sale-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--gray-100);
}

.sale-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-info-board {
    padding: 20px;
    background: white;
}

.dark-mode .sale-info-board {
    background: var(--gray-200);
}

.sale-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.sale-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
}

.sale-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

.sale-description {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sale-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.sale-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.sale-meta-item i {
    color: var(--gray-600);
    font-size: 12px;
}

.sale-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sale-hashtags .hashtag {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.dark-mode .sale-hashtags .hashtag {
    background: rgba(96, 165, 250, 0.2);
}

.sale-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
}

.sale-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-action-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.sale-action-btn.heart:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.dark-mode .sale-action-btn {
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.dark-mode .sale-action-btn:hover {
    background: var(--gray-300);
}

/* Users View */
.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.users-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.dark-mode .users-title {
    color: var(--gray-900);
}

.search-users {
    position: relative;
    margin-bottom: 16px;
}

.search-users input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: white;
    font-size: 14px;
    color: var(--gray-900);
}

.dark-mode .search-users input {
    background: var(--gray-200);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.search-users i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

/* Notifications View */
.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
}

.no-notifications i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray-300);
}

/* Account Modal */
.account-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.dark-mode .account-section {
    border-bottom-color: var(--gray-300);
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-section h3 {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.dark-mode .account-section h3 {
    color: var(--gray-900);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.logout-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
}

.logout-btn:hover {
    background: #dc2626;
}

/* OpenStreetMap Container */
#openStreetMap {
    height: 400px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 16px;
    z-index: 1;
}

/* Ensure map container has proper positioning */
.leaflet-container {
    border-radius: 16px;
    z-index: 1;
}
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    display: none; /* hidden by default */
}