/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Color Palette - Admin Login Style */
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --danger-color: #ff6b6b;
    
    /* Dark Backgrounds - Admin Login Style */
    --dark-bg: #0a0a0f;
    --dark-surface: #1a1a2e;
    --dark-card: #16213e;
    --dark-elevated: #0f3460;
    
    /* Light variants for contrast */
    --light-bg: #ffffff;
    --light-surface: #f8fafc;
    
    /* Text Colors */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --text-dark: #1e293b;
    
    /* Border and Dividers */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Gradients - Admin Login Style */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #ff6b6b 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ffd43b 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-card: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(78, 205, 196, 0.3) 100%);
    
    /* Shadows with glow effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
    --shadow-glow-secondary: 0 0 20px rgba(255, 107, 107, 0.3), 0 0 40px rgba(255, 107, 107, 0.1);
}

/* COMPREHENSIVE TEXT VISIBILITY FIXES FOR DARK THEME */

/* Ensure all text is visible on dark backgrounds */
body, html {
    color: #e2e8f0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Main content text visibility */
.main-content,
.dashboard-content,
.content-area,
.section-content,
.card-content,
.modal-body,
.sidebar-content {
    color: #e2e8f0 !important;
}

/* Headings and titles */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Paragraphs and general text */
p, span, div, li, td, th {
    color: #e2e8f0 !important;
}

/* Navigation text */
.nav-link,
.nav-item,
.navbar-nav .nav-link {
    color: #e2e8f0 !important;
}

/* Sidebar text */
.sidebar,
.sidebar * {
    color: #e2e8f0 !important;
}

/* Dashboard specific text */
.dashboard-header,
.dashboard-header *,
.stat-card,
.stat-card *,
.chart-title,
.section-title {
    color: #e2e8f0 !important;
}

/* Button text visibility */
.btn,
.button,
button {
    color: #ffffff !important;
}

/* Form elements text */
.form-control,
.form-select,
input,
textarea,
select {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Labels and form text */
label,
.form-label,
.input-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Card text */
.card,
.card-body,
.card-title,
.card-text {
    color: #e2e8f0 !important;
}

/* Table text */
table,
.table,
.table th,
.table td {
    color: #e2e8f0 !important;
}

/* List items */
ul li,
ol li,
.list-item {
    color: #e2e8f0 !important;
}

/* Status indicators */
.status,
.badge,
.tag,
.chip {
    color: #ffffff !important;
}

/* Links */
a {
    color: #00d4ff !important;
}

a:hover {
    color: #ffffff !important;
}

/* Specific dashboard elements */
.location-name,
.case-id,
.case-location,
.case-time,
.metric-value,
.stat-value,
.chart-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Secondary text elements */
.text-muted,
.text-secondary,
.secondary-text,
.description,
.subtitle {
    color: #94a3b8 !important;
}

/* Ensure icons are visible */
i, .icon, .fa {
    color: #00d4ff !important;
}

/* Override any white text on white backgrounds */
.white-bg,
.light-bg {
    color: #000000 !important;
}

/* Placeholder text */
::placeholder {
    color: #6b7280 !important;
}

/* Selection text */
::selection {
    background: rgba(0, 212, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Animated background elements - Admin Login Style */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: -2;
    animation: backgroundFloat 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%2300d4ff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ff6b6b" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: -1;
    animation: grain 8s linear infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translateX(-20px) translateY(-10px) rotate(1deg);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: translateX(20px) translateY(10px) rotate(-1deg);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: translateX(-10px) translateY(20px) rotate(0.5deg);
        filter: hue-rotate(270deg);
    }
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, -10%); }
    90% { transform: translate(-10%, 5%); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--shadow-glow);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.nav-logo i {
    font-size: 1.8rem;
    animation: logoSpin 10s linear infinite;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 5px var(--primary-color); }
    100% { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.admin-link {
    background: var(--gradient-secondary);
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow-secondary);
    animation: adminPulse 2s ease-in-out infinite;
}

.nav-link.admin-link:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow-secondary), var(--shadow-xl);
    color: white !important;
}

@keyframes adminPulse {
    0%, 100% { box-shadow: var(--shadow-glow-secondary); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.5), 0 0 60px rgba(255, 107, 107, 0.2); }
}

/* Navbar scrolled state - Admin Login Style */
.navbar.scrolled,
.navbar.scrolled.navbar {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 212, 255, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.4) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.navbar.scrolled::before,
.navbar.scrolled.navbar::before {
    opacity: 0.8 !important;
}

/* Ensure navbar always stays dark */
.navbar,
.navbar * {
    color: var(--text-primary) !important;
}

.nav-link.admin-link::after {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    animation: buttonGlow 1.5s ease-in-out infinite alternate;
}

.cta-btn:hover::before {
    left: 100%;
}

@keyframes buttonGlow {
    0% { box-shadow: var(--shadow-glow), var(--shadow-xl); }
    100% { box-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color), var(--shadow-xl); }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.2) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroGlow {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    100% { 
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    animation: buttonPulse 1.5s ease-in-out infinite alternate;
}

.btn-primary:hover::before {
    left: 100%;
}

@keyframes buttonPulse {
    0% { box-shadow: var(--shadow-glow), var(--shadow-xl); }
    100% { box-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color), var(--shadow-xl); }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.btn-secondary:hover::before {
    left: 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2d3748, #4a5568);
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.status-bar {
    margin-bottom: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success-color);
    border-radius: 20px;
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.map-view {
    flex: 1;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.location-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--danger-color);
    font-size: 2rem;
    z-index: 2;
}

.safety-radius {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.sos-btn {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
    top: 20%;
    right: 10%;
}

.floating-icon:nth-child(2) {
    top: 60%;
    left: 5%;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    right: 15%;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-point:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-point i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.feature-point span {
    font-weight: 600;
    color: var(--text-primary);
}

/* AI Illustration */
.ai-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.traveler-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.scanning-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: scan 3s ease-in-out infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
    animation-delay: 0s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    top: -90px;
    left: -90px;
    animation-delay: 1s;
}

.ring-3 {
    width: 240px;
    height: 240px;
    top: -120px;
    left: -120px;
    animation-delay: 2s;
}

.data-points {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.data-point {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    animation: orbit 8s linear infinite;
}

.data-point:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(var(--angle));
    transform-origin: 0 100px;
}

.data-point:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(var(--angle));
    transform-origin: -100px 0;
}

.data-point:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(var(--angle));
    transform-origin: 0 -100px;
}

.data-point:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(var(--angle));
    transform-origin: 100px 0;
}
/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.features .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 212, 255, 0.3),
        0 0 120px rgba(255, 107, 107, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
}

.feature-card:hover::after {
    left: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: scale(1.2) rotate(10deg) translateY(0px); }
    50% { transform: scale(1.2) rotate(10deg) translateY(-5px); }
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #e2e8f0 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.step-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(20px);
}

.step-content:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 212, 255, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Authorities Section */
.authorities {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: white;
}

.authorities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.authorities-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.authorities-text p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.authorities-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.1);
}

.auth-feature i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.auth-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-feature p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* Dashboard Preview */
.dashboard-preview {
    position: relative;
}

.dashboard-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.indicator.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--light-surface);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.dashboard-map {
    height: 150px;
    background: var(--light-surface);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.map-pins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pin {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pin.safe {
    background: var(--success-color);
}

.pin.warning {
    background: var(--warning-color);
}

.pin:nth-child(1) {
    top: 30%;
    left: 25%;
}

.pin:nth-child(2) {
    top: 60%;
    left: 70%;
}

.pin:nth-child(3) {
    top: 80%;
    left: 40%;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 75%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 107, 107, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 107, 107, 0.2);
    backdrop-filter: blur(20px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: serif;
    opacity: 0.3;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.testimonial-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 107, 107, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary.large:hover {
    background: rgba(255, 255, 255, 0.3);
}

.early-access {
    max-width: 500px;
    margin: 0 auto;
}

.early-access p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.early-access-form {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.early-access-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    outline: none;
}

.early-access-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.early-access-form button {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.early-access-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scan {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-connector {
        width: 2px;
        height: 60px;
        transform: rotate(90deg);
    }
    
    .step-connector::after {
        right: -4px;
        top: -5px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 10px solid var(--primary-color);
        border-bottom: none;
    }
    
    .authorities-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .early-access-form {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .early-access-form button {
        border-radius: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}
/* Interactive Feature Demos */
.feature-card.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-content {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

.demo-content.active {
    display: block;
}

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

/* Location Tracking Demo */
.location-display {
    text-align: center;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.location-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.location-coords {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.location-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-indicator {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

/* Geo-fence Demo */
.geofence-simulator {
    text-align: center;
}

.zone-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.zone-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.zone-btn.safe {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.zone-btn.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
}

.zone-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.zone-btn:hover {
    transform: scale(1.05);
}

.alert-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alert-display.safe {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.alert-display.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
}

.alert-display.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* SOS Demo */
.sos-simulator {
    text-align: center;
}

.sos-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.sos-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.sos-button.active {
    background: var(--danger-color);
    animation: sosAlert 1s ease-in-out infinite;
}

@keyframes sosAlert {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sos-status {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.sos-status.emergency {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* AI Analysis Demo */
.ai-analyzer {
    text-align: center;
}

.analysis-progress {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.threat-assessment {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assessment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.assessment-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Route Planning Demo */
.route-planner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.route-inputs input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
}

.route-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.route-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-btn:hover {
    transform: translateY(-2px);
}

.route-results {
    display: none;
}

.route-results.active {
    display: block;
}

.route-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--success-color);
}

.route-option i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.route-info strong {
    color: var(--text-primary);
}

.route-info span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Community Network Demo */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.safety-update {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.update-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.update-content {
    flex: 1;
}

.update-content strong {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.update-content p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.update-time {
    color: var(--text-light);
    font-size: 0.75rem;
}

.community-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    background: var(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

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

/* Responsive adjustments for demos */
@media (max-width: 768px) {
    .zone-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .community-actions {
        flex-direction: column;
    }
    
    .route-inputs {
        gap: 0.75rem;
    }
}
/* Authentication Styles */
.login-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    transition: all 0.6s ease;
    z-index: -1;
}

.login-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.4),
        0 10px 20px rgba(0, 212, 255, 0.3);
}

.login-btn:hover::before {
    left: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.logout-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.logout-btn:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    position: relative;
    z-index: 2;
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, #e2e8f0 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.1);
}

.close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(0, 212, 255, 0.2),
        0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 20px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(255, 107, 107, 0.2);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.auth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(255, 107, 107, 0.3);
    animation: buttonGlow 1.5s ease-in-out infinite alternate;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Dashboard Styles */
.dashboard-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    backdrop-filter: blur(5px);
}

.dashboard-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-container {
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dashboardSlideIn 0.4s ease;
}

@keyframes dashboardSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gradient-dark);
    color: white;
}

.dashboard-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.user-greeting {
    font-size: 0.875rem;
    opacity: 0.8;
}

.dashboard-controls {
    display: flex;
    gap: 0.5rem;
}

.minimize-btn, .close-dashboard-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.minimize-btn:hover, .close-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 250px;
    background: var(--light-surface);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--gradient-primary);
}

.stat-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.stat-value.safe {
    color: var(--success-color);
}

.stat-card small {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.widget h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 10px;
}

.activity-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.activity-item p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-item small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-action-btn.emergency {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.quick-action-btn.emergency:hover {
    background: var(--danger-color);
    color: white;
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Location Dashboard */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.tracking-controls {
    display: flex;
    gap: 1rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--success-color);
    color: white;
}

.location-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.map-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.mock-map {
    height: 400px;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-location {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.safety-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.safe-zone, .warning-zone {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.safe-zone {
    width: 200px;
    height: 200px;
    border: 3px solid var(--success-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.warning-zone {
    width: 120px;
    height: 120px;
    border: 2px solid var(--warning-color);
    top: 20%;
    right: 20%;
}

.location-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.current-location, .location-sharing {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.current-location h4, .location-sharing h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.sharing-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

/* Emergency Panel */
.emergency-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sos-center {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.sos-main-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.sos-main-btn:hover {
    transform: scale(1.05);
    background: var(--danger-color);
}

.emergency-contacts {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 10px;
}

.call-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Settings Panel */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-group {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.setting-group h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.setting-item label {
    color: var(--text-primary);
    font-weight: 500;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        order: 2;
    }
    
    .dashboard-main {
        order: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .location-dashboard {
        grid-template-columns: 1fr;
    }
    
    .emergency-panel {
        grid-template-columns: 1fr;
    }
}
/* Happy & Delightful Effects */

/* Smooth page transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bouncy button effects */
.btn-primary, .btn-secondary, .cta-btn, .login-btn, .dashboard-btn {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-primary:hover, .btn-secondary:hover, .cta-btn:hover, .login-btn:hover, .dashboard-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:active, .btn-secondary:active, .cta-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Magical gradient animations */
.hero {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #312e81, #1e40af);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sparkle effect for hero section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(200px); }
}

/* Joyful card hover effects */
.feature-card, .testimonial-card, .stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before, .testimonial-card:hover::before {
    left: 100%;
}

.feature-card:hover, .testimonial-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* Playful icon animations */
.feature-icon, .stat-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon, .stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
}

/* Happy loading animations */
.demo-btn:disabled, .auth-btn:disabled {
    position: relative;
    overflow: hidden;
}

.demo-btn:disabled::after, .auth-btn:disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Delightful phone mockup animations */
.phone-mockup {
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

.phone-screen {
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    animation: screenGlow 4s ease-in-out infinite alternate;
}

@keyframes screenGlow {
    from { box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.3); }
    to { box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.5); }
}

/* Cheerful floating elements */
.floating-icon {
    animation: happyFloat 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes happyFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(5deg) scale(1.1); }
    50% { transform: translateY(-10px) rotate(0deg) scale(1); }
    75% { transform: translateY(-20px) rotate(-5deg) scale(1.05); }
}

/* Joyful navigation effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

/* Happy scroll animations */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delightful success animations */
.success-bounce {
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% { transform: scale(0.3) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Playful dashboard animations */
.dashboard-container {
    animation: dashboardEntrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dashboardEntrance {
    0% { 
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

/* Happy form interactions */
.form-group input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Cheerful notification animations */
.notification {
    animation: notificationSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes notificationSlide {
    0% {
        transform: translateX(100%) rotate(10deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

/* Joyful SOS button effect */
.sos-button, .sos-main-btn {
    position: relative;
    overflow: hidden;
}

.sos-button::before, .sos-main-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.sos-button:hover::before, .sos-main-btn:hover::before {
    width: 200px;
    height: 200px;
}

/* Happy stats counter animation */
.stat-value {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
    transform: scale(1.2);
    color: #6366f1;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Delightful loading states */
.loading-dots::after {
    content: '';
    display: inline-block;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Cheerful hover effects for quick actions */
.quick-action-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.quick-action-btn:hover i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Happy community feed animations */
.safety-update {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.safety-update:hover {
    transform: translateX(5px);
    border-left-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

/* Joyful modal entrance */
.modal.active .modal-content {
    animation: modalBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Playful cursor effects */
.btn-primary, .btn-secondary, .cta-btn, .feature-card, .testimonial-card {
    cursor: pointer;
    position: relative;
}

/* Happy page load animation */
body {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delightful scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Cheerful success checkmarks */
.success-checkmark {
    animation: checkmarkDraw 0.8s ease-in-out;
}

@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 1;
    }
}

/* Happy micro-interactions */
.interactive-element {
    transition: all 0.2s ease;
}

.interactive-element:active {
    transform: scale(0.95);
}

/* Joyful gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextShift 3s ease-in-out infinite;
}

@keyframes gradientTextShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

/* Responsive happiness */
@media (max-width: 768px) {
    .feature-card:hover, .testimonial-card:hover {
        transform: translateY(-5px) rotate(0deg);
    }
    
    .phone-mockup {
        animation: phoneFloatMobile 4s ease-in-out infinite;
    }
    
    @keyframes phoneFloatMobile {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
}
/* Community Review System Styles */

/* Community Tabs */
.community-tabs {
    display: flex;
    background: var(--light-surface);
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.community-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-secondary);
}

.community-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.community-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.community-tab i {
    font-size: 1.1rem;
}

/* Tab Content */
.community-tab-content {
    display: none;
}

.community-tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

/* Reviews Container */
.reviews-container, .write-review-container, .nearby-reviews-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.reviews-header, .nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.reviews-header h4, .nearby-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.reviews-filters, .radius-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select, #search-radius {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Review Form */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
}

.location-input-group input {
    flex: 1;
}

.location-btn {
    padding: 0.75rem 1rem;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.star {
    font-size: 2rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star.active {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.rating-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Safety Features Checkboxes */
.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-checkbox:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.feature-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.feature-checkbox span {
    font-weight: 500;
    color: var(--text-primary);
}

.anonymous-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
    cursor: pointer;
}

.anonymous-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Review Cards */
.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-info {
    flex: 1;
}

.review-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.review-location {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-stars {
    color: #fbbf24;
}

.review-category {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-content {
    margin: 1rem 0;
}

.review-description {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.feature-tag i {
    font-size: 0.75rem;
}

.review-tips {
    background: var(--light-surface);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.review-tips h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.review-tips p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
}

.review-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.review-action-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Distance Indicator */
.distance-indicator {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* Loading States */
.loading-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-reviews i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design for Reviews */
@media (max-width: 768px) {
    .community-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .community-tab {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .reviews-header, .nearby-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .location-input-group {
        flex-direction: column;
    }
    
    .safety-features {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .review-meta {
        flex-wrap: wrap;
    }
    
    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* Community Area Reviews Styles - Fixed */

/* Community Tabs */
.community-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--light-surface);
    padding: 0.5rem;
    border-radius: 10px 10px 0 0;
}

.community-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.community-tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.community-tab.active {
    color: white;
    background: var(--gradient-primary);
    border-bottom-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.community-tab i {
    font-size: 1.125rem;
}

/* Tab Content */
.community-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.community-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease;
}

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

/* Write Review Form */
.write-review-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
}

.location-input-group input {
    flex: 1;
}

.location-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.star {
    font-size: 2rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star.active {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.rating-description {
    color: var(--text-secondary);
    font-style: italic;
}

/* Safety Features Checkboxes */
.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-checkbox:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.feature-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.feature-checkbox span {
    font-weight: 500;
    color: var(--text-primary);
}

.anonymous-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
    cursor: pointer;
}

.anonymous-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Reviews Display */
.reviews-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.reviews-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Review Cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: var(--light-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.author-info small {
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-stars {
    display: flex;
    gap: 0.125rem;
}

.review-stars .star {
    font-size: 1rem;
    color: #fbbf24;
}

.review-stars .star.empty {
    color: #e5e7eb;
}

.review-location {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.review-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.review-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-tips {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
    margin-bottom: 1rem;
}

.review-tips strong {
    display: block;
    margin-bottom: 0.5rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.review-actions {
    display: flex;
    gap: 1rem;
}

.review-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.review-action:hover {
    color: var(--primary-color);
}

.review-action.liked {
    color: var(--danger-color);
}

.review-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Nearby Reviews */
.nearby-reviews-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.radius-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radius-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.radius-selector select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Review Category Badges */
.review-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-category.general { background: var(--gradient-primary); }
.review-category.daytime { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.review-category.nighttime { background: linear-gradient(135deg, #6366f1, #4338ca); }
.review-category.transport { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.review-category.shopping { background: linear-gradient(135deg, #10b981, #059669); }
.review-category.dining { background: linear-gradient(135deg, #f59e0b, #d97706); }
.review-category.tourist { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.review-category.emergency { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* Empty State */
.empty-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-reviews i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-reviews h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Loading State */
.reviews-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.reviews-loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design for Community */
@media (max-width: 768px) {
    .community-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .community-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .community-tab span {
        display: none;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .safety-features {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .location-input-group {
        flex-direction: column;
    }
    
    .nearby-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .review-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
/* Dashboard Styles */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dashboard-overlay.active {
    display: flex;
}

.dashboard-container {
    width: 95%;
    max-width: 1400px;
    height: 90%;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    color: white;
}

.dashboard-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.user-greeting {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dashboard-controls {
    display: flex;
    gap: 0.5rem;
}

.minimize-btn, .close-dashboard-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.minimize-btn:hover, .close-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 250px;
    background: var(--light-surface);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: var(--success-color);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--primary-color);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--accent-color);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--secondary-color);
}

.stat-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.stat-value.safe {
    color: var(--success-color);
}

.stat-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.activity-item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
}

.activity-item p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.activity-item small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-surface);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.quick-action-btn.emergency {
    background: var(--danger-color);
    color: white;
}

.quick-action-btn.emergency:hover {
    background: #dc2626;
}

.quick-action-btn i {
    font-size: 1.2rem;
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Location Tracking Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tracking-controls {
    display: flex;
    gap: 1rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    transform: translateY(-1px);
}

.location-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.map-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.mock-map {
    height: 400px;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-location {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
}

.safety-zones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.safe-zone, .warning-zone {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.safe-zone {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    top: 20%;
    left: 20%;
}

.warning-zone {
    width: 80px;
    height: 80px;
    background: var(--warning-color);
    bottom: 30%;
    right: 25%;
}

.location-info-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    height: fit-content;
}

.current-location, .location-sharing {
    margin-bottom: 2rem;
}

.current-location h4, .location-sharing h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.current-location p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sharing-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Emergency Panel Styles */
.emergency-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sos-center {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.sos-main-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.sos-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

.sos-main-btn i {
    font-size: 2rem;
}

.emergency-contacts {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.emergency-contacts h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.emergency-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.emergency-contact i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.call-btn {
    padding: 0.5rem 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.call-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Simple Community Styles - Reddit-like */
.community-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 600px;
}

.community-tabs {
    display: flex;
    background: var(--light-surface);
    border-bottom: 1px solid var(--border-color);
}

.community-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.community-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.community-tab.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Feed Styles */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.feed-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-category {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.post-category.safe { background: var(--success-color); }
.post-category.warning { background: var(--warning-color); }
.post-category.tip { background: var(--accent-color); }
.post-category.emergency { background: var(--danger-color); }
.post-category.transport { background: var(--secondary-color); }
.post-category.nightlife { background: #8b5cf6; }

.post-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-num {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.post-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.vote-btn, .action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.vote-btn:hover, .action-btn:hover {
    background: var(--light-surface);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.upvote:hover {
    color: var(--success-color);
    border-color: var(--success-color);
}

.downvote:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Write Post Form */
.write-post h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-row input, 
.form-row select, 
.form-row textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-row input:focus, 
.form-row select:focus, 
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.location-btn {
    padding: 0.75rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #0891b2;
}

.rating-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-section label {
    font-weight: 500;
    color: var(--text-primary);
}

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating .star:hover {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-options {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Browse Reviews */
.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.browse-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.browse-filters {
    display: flex;
    gap: 1rem;
}

.browse-filters select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-category {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.review-rating .stars {
    color: #fbbf24;
    font-size: 1rem;
}

.review-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-meta {
    display: flex;
    gap: 1rem;
}

.review-votes {
    color: var(--success-color);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0 0 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-tabs {
        flex-wrap: wrap;
    }
    
    .community-tab {
        min-width: 33.33%;
    }
    
    .community-tab span {
        display: none;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .feed-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .post-actions {
        justify-content: center;
    }
    
    .browse-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .browse-filters {
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Reviews Container - Responsive */
.reviews-container {
    max-height: 500px;
    overflow-y: auto;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.reviews-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Review Card - Enhanced Responsive */
.review-card {
    background: var(--light-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.review-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.review-category.general { background: var(--primary-color); }
.review-category.daytime { background: var(--success-color); }
.review-category.nighttime { background: var(--secondary-color); }
.review-category.transport { background: var(--accent-color); }
.review-category.shopping { background: var(--warning-color); }
.review-category.dining { background: #f97316; }
.review-category.tourist { background: #8b5cf6; }
.review-category.emergency { background: var(--danger-color); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.author-info h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.author-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.review-stars {
    display: flex;
    gap: 0.1rem;
}

.review-stars .star {
    color: #fbbf24;
    font-size: 1rem;
}

.review-stars .star.empty {
    color: var(--border-color);
}

.rating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-distance {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.review-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.review-tips {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success-color);
}

.review-tips strong {
    color: var(--success-color);
    display: block;
    margin-bottom: 0.5rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.review-action:hover {
    background: var(--light-surface);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.review-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Write Review Form - Enhanced Responsive */
.write-review-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.location-input-group input {
    flex: 1;
    min-width: 200px;
}

.location-btn {
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-btn:hover {
    background: #0891b2;
    transform: translateY(-1px);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star-rating .star {
    font-size: 2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-checkbox:hover {
    background: var(--light-surface);
    border-color: var(--primary-color);
}

.feature-checkbox input {
    margin: 0;
    cursor: pointer;
}

.feature-checkbox span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.anonymous-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anonymous-checkbox:hover {
    background: rgba(99, 102, 241, 0.1);
}

.anonymous-checkbox input {
    margin: 0;
    cursor: pointer;
}

.anonymous-checkbox span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-review-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-review-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.submit-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--light-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Nearby Reviews - Enhanced */
.nearby-reviews-container {
    height: 100%;
}

.nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nearby-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.radius-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radius-selector label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.radius-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.nearby-reviews-list {
    max-height: 450px;
    overflow-y: auto;
}

/* Empty States - Enhanced */
.empty-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-reviews i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-reviews h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.empty-reviews p {
    margin: 0;
    font-size: 0.9rem;
}

.reviews-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.reviews-loading i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Community Feed Enhanced */
.community-feed-full {
    height: 100%;
}

.community-updates {
    max-height: 500px;
    overflow-y: auto;
}

.community-updates h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.safety-update {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.safety-update:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.update-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.update-content {
    flex: 1;
    min-width: 0;
}

.update-content strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.update-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.update-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Review Styles */
.reviews-container {
    max-height: 500px;
    overflow-y: auto;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reviews-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--light-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.review-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-stars {
    display: flex;
    gap: 0.1rem;
}

.review-stars .star {
    color: #fbbf24;
    font-size: 1rem;
}

.review-stars .star.empty {
    color: var(--border-color);
}

.rating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.review-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.review-tips {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success-color);
}

.review-tips strong {
    color: var(--success-color);
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.review-actions {
    display: flex;
    gap: 1rem;
}

.review-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.review-action:hover {
    background: var(--light-surface);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.review-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Write Review Form */
.write-review-container {
    max-height: 500px;
    overflow-y: auto;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
}

.location-input-group input {
    flex: 1;
}

.location-btn {
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #0891b2;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star-rating .star {
    font-size: 2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
}

.rating-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.feature-checkbox:hover {
    background: var(--light-surface);
}

.feature-checkbox input {
    margin: 0;
}

.feature-checkbox span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.anonymous-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.anonymous-option input {
    margin: 0;
}

.anonymous-option label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.submit-review-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-review-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.submit-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Nearby Reviews */
.nearby-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.nearby-controls label {
    font-weight: 500;
    color: var(--text-primary);
}

.nearby-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
}

.review-distance {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Empty States */
.empty-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-reviews i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-reviews h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.reviews-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.reviews-loading i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Debug Section */
.debug-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.debug-section p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.debug-section button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.debug-section button:hover {
    transform: translateY(-1px);
}

/* Responsive Design for Community Section */
@media (max-width: 768px) {
    .dashboard-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        order: 2;
    }
    
    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .nav-item {
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
    }
    
    .dashboard-main {
        order: 1;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .location-dashboard {
        grid-template-columns: 1fr;
    }
    
    .emergency-panel {
        grid-template-columns: 1fr;
    }
    
    /* Community Mobile Responsive */
    .community-tabs {
        flex-wrap: wrap;
    }
    
    .community-tab {
        min-width: 50%;
        flex: 1 1 50%;
    }
    
    .community-tab span {
        display: none;
    }
    
    .community-tab-content {
        padding: 1rem;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reviews-filters {
        justify-content: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .review-rating {
        align-self: flex-start;
    }
    
    .review-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .review-actions {
        justify-content: center;
    }
    
    .safety-features {
        grid-template-columns: 1fr;
    }
    
    .location-input-group {
        flex-direction: column;
    }
    
    .location-input-group input {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-review-btn {
        min-width: auto;
    }
    
    .nearby-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .radius-selector {
        justify-content: center;
    }
    
    .write-review-container {
        max-height: none;
        padding-right: 0;
    }
    
    .reviews-container {
        max-height: none;
    }
    
    .nearby-reviews-list {
        max-height: none;
    }
    
    .community-updates {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .community-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .community-tab i {
        font-size: 0.9rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .review-title {
        font-size: 1rem;
    }
    
    .star-rating .star {
        font-size: 1.5rem;
    }
    
    .feature-checkbox {
        padding: 0.5rem;
    }
    
    .safety-update {
        padding: 0.75rem;
    }
    
    .update-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 2;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-btn {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.dashboard-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.dashboard-btn:hover {
    background: var(--primary-dark);
}

.logout-btn {
    background: var(--light-surface);
    color: var(--text-secondary);
}

.logout-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Address container with retry button */
.address-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.retry-address-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.retry-address-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.retry-address-btn:active {
    transform: scale(0.95);
}

.address-container .address {
    flex: 1;
    margin: 0;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

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

.notification.error {
    background: var(--danger-color);
    color: white;
}

.notification.emergency {
    background: var(--danger-color);
    color: white;
    animation: shake 0.5s ease-in-out;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.notification button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Settings Panel */
.settings-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.setting-item label {
    color: var(--text-primary);
    font-weight: 500;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Route Planning */
/* Enhanced Route Planning */
.routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.routes-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.route-status .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.route-planner-full {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.route-inputs-section {
    margin-bottom: 2rem;
}

.route-inputs-full {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.input-group i.start-marker {
    color: var(--success-color);
}

.input-group i.end-marker {
    color: var(--danger-color);
}

.input-group > i {
    position: absolute;
    left: 1rem;
    z-index: 2;
    font-size: 1rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.location-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.plan-route-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.plan-route-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.plan-route-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Route Preferences */
.route-preferences {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.route-preferences h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preference-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.preference-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

.preference-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.preference-info {
    flex: 1;
}

.preference-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.preference-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.time-preference {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.time-preference select,
.time-preference input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Enhanced Route Options */
.route-results-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.route-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-option.enhanced {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.route-option.enhanced:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.route-option.enhanced.success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.02);
}

.route-option.enhanced.warning {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.02);
}

.route-option.enhanced.danger {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.02);
}

.route-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.route-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.route-option.success .route-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.route-option.warning .route-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.route-option.danger .route-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.route-basic-info {
    flex: 1;
}

.route-basic-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.route-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.route-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.route-stats .safety-score {
    font-weight: 600;
}

.route-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

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

.action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Route Details (Expandable) */
.route-details {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.route-option.expanded .route-details {
    display: block;
}

.route-features,
.route-warnings {
    margin-bottom: 1rem;
}

.route-features h5,
.route-warnings h5,
.route-timeline h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.features-list,
.warnings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li,
.warnings-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.features-list i {
    color: var(--success-color);
}

.warnings-list i {
    color: var(--warning-color);
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline-step i {
    color: var(--primary-color);
}

/* Route Map Preview */
.route-map-preview {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.map-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-control-btn {
    padding: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

.mock-route-map {
    height: 300px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.route-path {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color) 0%, var(--primary-color) 50%, var(--danger-color) 100%);
    border-radius: 2px;
    transform: translateY(-50%);
}

.route-markers {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(-50%);
}

.route-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.route-marker.start {
    left: 0;
    background: var(--success-color);
    transform: translateX(-50%);
}

.route-marker.end {
    right: 0;
    background: var(--danger-color);
    transform: translateX(50%);
}

.safety-indicators {
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
}

.safety-zone {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.safety-zone.safe {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    top: 20%;
    left: 30%;
}

.safety-zone.warning {
    width: 40px;
    height: 40px;
    background: var(--warning-color);
    bottom: 30%;
    right: 20%;
}

/* Saved Routes Section */
.saved-routes-section,
.route-history-section {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saved-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.saved-route-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.saved-route-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.route-card-header h5 {
    margin: 0;
    color: var(--text-primary);
}

.route-card-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.route-card-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Route History */
.route-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: var(--bg-secondary);
}

.history-info {
    flex: 1;
}

.history-route {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.history-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

.no-routes-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-routes-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--warning-color);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .route-inputs-full {
        flex-direction: column;
    }
    
    .route-results-container {
        grid-template-columns: 1fr;
    }
    
    .preferences-grid {
        grid-template-columns: 1fr;
    }
    
    .route-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .saved-routes-grid {
        grid-template-columns: 1fr;
    }
    
    .time-preference {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

/* Safety Zone Management Styles */
.safety-zone-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Location Status Card */
.location-status-card {
    background: var(--light-surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-location-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-location-btn:hover {
    background: #0891b2;
    transform: rotate(180deg);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.location-info > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-info .label {
    font-weight: 500;
    color: var(--text-secondary);
}

.location-info .value {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.location-actions {
    display: flex;
    gap: 1rem;
}

/* Zone Controls */
.zone-controls {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.zone-tabs {
    display: flex;
    background: var(--light-surface);
    border-bottom: 1px solid var(--border-color);
}

.zone-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.zone-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.zone-tab.active {
    background: var(--primary-color);
    color: white;
}

.zone-tab-content {
    display: none;
    padding: 2rem;
}

.zone-tab-content.active {
    display: block;
}

/* Current Zone Status */
.current-zone-status {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.zone-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-surface);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.zone-indicator.safe {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.zone-indicator.warning {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.zone-indicator.danger {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.zone-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-color);
    color: white;
}

.zone-indicator.safe .zone-icon {
    background: var(--success-color);
}

.zone-indicator.warning .zone-icon {
    background: var(--warning-color);
}

.zone-indicator.danger .zone-icon {
    background: var(--danger-color);
}

.zone-info {
    flex: 1;
}

.zone-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.zone-info p {
    margin: 0;
    color: var(--text-secondary);
}

.zone-level {
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--text-light);
    color: white;
}

.zone-indicator.safe .level-indicator {
    background: var(--success-color);
}

.zone-indicator.warning .level-indicator {
    background: var(--warning-color);
}

.zone-indicator.danger .level-indicator {
    background: var(--danger-color);
}

/* Nearby Zones */
.nearby-zones h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.zone-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.zone-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zone-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.zone-item-icon.safe { background: rgba(16, 185, 129, 0.2); color: var(--success-color); }
.zone-item-icon.warning { background: rgba(245, 158, 11, 0.2); color: var(--warning-color); }
.zone-item-icon.danger { background: rgba(239, 68, 68, 0.2); color: var(--danger-color); }

.zone-item-details h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.zone-item-details p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.zone-distance {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Zone Management */
.zone-management {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.zone-actions {
    display: flex;
    gap: 1rem;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.user-zone-card {
    background: var(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.user-zone-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.zone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.zone-card-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.zone-card-type {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.zone-card-type.safe { background: rgba(16, 185, 129, 0.2); color: var(--success-color); }
.zone-card-type.warning { background: rgba(245, 158, 11, 0.2); color: var(--warning-color); }
.zone-card-type.danger { background: rgba(239, 68, 68, 0.2); color: var(--danger-color); }

.zone-card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.zone-card-actions {
    display: flex;
    gap: 0.5rem;
}

.zone-card-actions button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.zone-card-actions button:hover {
    background: var(--light-surface);
}

.zone-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Alert Settings */
.alert-settings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.alert-settings h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.alert-radius {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-radius label {
    font-weight: 500;
    color: var(--text-primary);
}

.alert-radius input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    accent-color: var(--primary-color);
}

.test-alerts {
    display: flex;
    gap: 1rem;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Empty State */
.empty-zones {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-zones i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-zones h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-zones p {
    margin: 0 0 1rem 0;
}

/* Responsive Design for Safety Zones */
@media (max-width: 768px) {
    .safety-zone-panel {
        gap: 1rem;
    }
    
    .zone-tabs {
        flex-direction: column;
    }
    
    .zone-tab span {
        display: none;
    }
    
    .zone-tab-content {
        padding: 1rem;
    }
    
    .zone-indicator {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .location-actions {
        flex-direction: column;
    }
    
    .zone-actions {
        flex-direction: column;
    }
    
    .zones-grid {
        grid-template-columns: 1fr;
    }
    
    .test-alerts {
        flex-direction: column;
    }
}

/* Loading States */
.loading-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.loading-location i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Zone Alert Animations */
.zone-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease;
}

.zone-alert.safe {
    background: var(--success-color);
    color: white;
}

.zone-alert.warning {
    background: var(--warning-color);
    color: white;
}

.zone-alert.danger {
    background: var(--danger-color);
    color: white;
    animation: shake 0.5s ease-in-out, slideInRight 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/* Enhanced Live Location Tracking Styles */
.location-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tracking-status-card {
    background: var(--light-surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: var(--success-color);
}

.status-dot.paused {
    background: var(--warning-color);
    animation: none;
}

.status-dot.error {
    background: var(--danger-color);
    animation: none;
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-container {
    position: relative;
    background: var(--light-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mock-map {
    height: 300px;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    position: relative;
    overflow: hidden;
}

.user-location {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
    z-index: 3;
}

.tracking-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: fadeOut 10s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: var(--light-surface);
    box-shadow: var(--shadow-md);
}

.location-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.current-location,
.location-sharing,
.tracking-history {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.current-location h4,
.location-sharing h4,
.tracking-history h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.coordinates {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.location-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.sharing-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sharing-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

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

input:checked + .slider:before {
    transform: translateX(20px);
}

.sharing-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: 8px;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-item span:first-of-type {
    flex: 1;
    color: var(--text-primary);
}

.status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status.paused {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--light-surface);
    border-radius: 6px;
    font-size: 0.8rem;
}

.history-time {
    color: var(--text-secondary);
}

.history-location {
    color: var(--text-primary);
    flex: 1;
    margin-left: 0.5rem;
}

/* Responsive Design for Live Tracking */
@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tracking-stats {
        grid-template-columns: 1fr;
    }
    
    .mock-map {
        height: 200px;
    }
    
    .sharing-controls {
        gap: 0.75rem;
    }
    
    .tracking-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation for active tracking */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.user-location.tracking {
    animation: pulse 2s infinite;
}

/* Loading states */
.loading-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.loading-location i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Enhanced Emergency SOS System */
.emergency-panel {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}

.sos-center {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 16px;
    border: 2px solid #ef4444;
}

.sos-main-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.sos-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.sos-main-btn:active {
    transform: scale(0.95);
}

.sos-main-btn i {
    font-size: 2.5rem;
}

.sos-countdown {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    animation: pulse 1s ease-in-out infinite;
}

.countdown-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cancel-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.emergency-status {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-header i {
    font-size: 1.5rem;
    color: #10b981;
    animation: phoneRing 1s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.call-info {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.call-info p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.emergency-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.end-call-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.end-call-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

.add-info-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-info-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
}

.emergency-contacts {
    background: #f9fafb;
    border-radius: 16px;
    padding: 1.5rem;
}

.emergency-contacts h4 {
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list {
    display: grid;
    gap: 1rem;
}

.emergency-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.emergency-contact:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.contact-info i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.emergency-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.police-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.medical-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.fire-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.personal-icon {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.contact-name {
    font-weight: 500;
    color: #1f2937;
}

.contact-number {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 0.9rem;
}

.call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.emergency-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #3b82f6;
}

.emergency-info h4 {
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-item i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.info-item span {
    color: #374151;
    font-size: 0.9rem;
}

/* Responsive design for emergency panel */
@media (max-width: 768px) {
    .sos-main-btn {
        width: 150px;
        height: 150px;
        font-size: 1rem;
    }
    
    .sos-main-btn i {
        font-size: 2rem;
    }
    
    .emergency-actions {
        flex-direction: column;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .emergency-contact {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Emergency call animation */
@keyframes emergencyAlert {
    0%, 100% { 
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        transform: scale(1.05);
    }
}

.emergency-active {
    animation: emergencyAlert 1s ease-in-out infinite;
}

/* CRITICAL: Force navbar to always be dark - Override any other styles */
.navbar,
.navbar.scrolled,
nav.navbar,
nav.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 1) !important;
}

.navbar.scrolled,
nav.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 212, 255, 0.1) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
}

/* Force all navbar text to be light */
.navbar,
.navbar *,
.navbar .nav-link,
.navbar .nav-logo {
    color: var(--text-primary) !important;
}

/* Prevent any white backgrounds on navbar */
.navbar * {
    background-color: transparent !important;
}

.navbar .nav-link:not(.admin-link) {
    background: transparent !important;
}
/* GLOBAL DARK THEME OVERRIDE - Fix all white backgrounds */

/* Dashboard and Widget Elements */
.stat-card,
.widget,
.map-container,
.current-location,
.location-sharing,
.sos-center,
.emergency-contacts,
.setting-group,
.location-info-panel,
.community-dashboard,
.settings-panel,
.route-planner-full,
.route-map-preview,
.saved-routes-section,
.route-history-section,
.zone-controls {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
}

/* Review and Community Elements */
.reviews-container,
.write-review-container,
.nearby-reviews-container,
.review-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
}

/* Status and Info Elements */
.sos-status,
.location-coords {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    color: var(--text-primary) !important;
}

/* Button and Control Elements */
.early-access-form button,
.map-control-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #ff6b6b 100%) !important;
    color: white !important;
    border: none !important;
}

/* Form and Input Elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border: 2px solid rgba(0, 212, 255, 0.2) !important;
    font-weight: 500 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #000000 !important;
    box-shadow: 
        0 0 0 3px rgba(0, 212, 255, 0.2),
        0 0 20px rgba(0, 212, 255, 0.3) !important;
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
    color: var(--text-secondary) !important;
}

/* Any remaining white backgrounds */
*[style*="background: white"],
*[style*="background-color: white"],
*[style*="background:#fff"],
*[style*="background-color:#fff"] {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
    color: var(--text-primary) !important;
}

/* Mobile navigation fix */
@media (max-width: 768px) {
    .nav-menu {
        background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%) !important;
        border: 1px solid rgba(0, 212, 255, 0.2) !important;
    }
}

/* Ensure all text is visible */
.stat-card *,
.widget *,
.map-container *,
.current-location *,
.location-sharing *,
.sos-center *,
.emergency-contacts *,
.setting-group *,
.location-info-panel *,
.community-dashboard *,
.settings-panel *,
.route-planner-full *,
.route-map-preview *,
.saved-routes-section *,
.route-history-section *,
.zone-controls *,
.reviews-container *,
.write-review-container *,
.nearby-reviews-container *,
.review-card * {
    color: var(--text-primary) !important;
}

/* Headings in dark containers */
.stat-card h1,
.stat-card h2,
.stat-card h3,
.stat-card h4,
.stat-card h5,
.stat-card h6,
.widget h1,
.widget h2,
.widget h3,
.widget h4,
.widget h5,
.widget h6 {
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, #e2e8f0 0%, #00d4ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Links in dark containers */
.stat-card a,
.widget a,
.reviews-container a,
.community-dashboard a {
    color: var(--primary-color) !important;
}

.stat-card a:hover,
.widget a:hover,
.reviews-container a:hover,
.community-dashboard a:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}
/* CLEAN LOGIN FORM WITH BLACK TEXT FOR VISIBILITY */
.modal .form-group input,
.modal .auth-form input,
.modal input[type="email"],
.modal input[type="password"],
.modal input[type="text"],
.auth-form input,
.form-group input {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border: 2px solid rgba(135, 206, 250, 0.5) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.modal .form-group input:focus,
.modal .auth-form input:focus,
.modal input[type="email"]:focus,
.modal input[type="password"]:focus,
.modal input[type="text"]:focus,
.auth-form input:focus,
.form-group input:focus {
    outline: none !important;
    border-color: #00d4ff !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #000000 !important;
    text-shadow: none !important;
    box-shadow: 
        0 0 0 3px rgba(0, 212, 255, 0.3),
        0 4px 12px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.modal .form-group input::placeholder,
.modal .auth-form input::placeholder,
.modal input::placeholder,
.auth-form input::placeholder,
.form-group input::placeholder {
    color: #6b7280 !important;
    text-shadow: none !important;
    font-weight: 400 !important;
}

.modal .form-group label,
.modal .auth-form label,
.auth-form label,
.form-group label {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 
        0 1px 3px rgba(30, 64, 175, 0.8),
        0 0 8px rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    display: inline-block !important;
    backdrop-filter: blur(5px) !important;
}

/* Auto-fill styles with light blue shadows */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(26, 26, 46, 0.9) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Ensure text cursor is visible */
.modal input {
    caret-color: #87ceeb !important;
}

/* ADDITIONAL DASHBOARD TEXT VISIBILITY FIXES */

/* Dashboard sidebar navigation */
.sidebar-nav .nav-item,
.sidebar-nav .nav-item span,
.sidebar-header h2,
.sidebar-header p {
    color: #e2e8f0 !important;
}

/* Dashboard main content */
.dashboard-container,
.dashboard-container *,
.main-content,
.main-content * {
    color: #e2e8f0 !important;
}

/* Statistics cards */
.stats-grid .stat-card,
.stats-grid .stat-card *,
.stat-header,
.stat-value,
.stat-label,
.stat-change {
    color: #ffffff !important;
}

/* Chart containers */
.chart-container,
.chart-container *,
.chart-title,
.chart-filters,
.filter-btn {
    color: #1f2937 !important;
    background: #ffffff !important;
}

/* Location panel */
.locations-panel,
.locations-panel *,
.location-item,
.location-info,
.location-name,
.location-cases,
.case-count {
    color: #1f2937 !important;
    background: #ffffff !important;
}

/* Recent cases */
.recent-cases,
.recent-cases *,
.case-item,
.case-info,
.case-id,
.case-location,
.case-time,
.case-status {
    color: #1f2937 !important;
    background: #ffffff !important;
}

/* Dashboard sections */
.dashboard-section,
.dashboard-section *,
.section-controls,
.section-controls * {
    color: #e2e8f0 !important;
}

/* Search and filter inputs */
.search-input,
.filter-select {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Tables */
.cases-table,
.cases-table th,
.cases-table td {
    color: #1f2937 !important;
    background: #ffffff !important;
}

/* Map containers */
.map-container,
.map-placeholder,
.map-placeholder * {
    color: #1f2937 !important;
}

/* Location analytics */
.location-analytics,
.location-stats,
.location-metrics,
.metric-card,
.metric-card * {
    color: #1f2937 !important;
    background: #ffffff !important;
}

/* Alerts and reports */
.alerts-panel,
.reports-panel,
.settings-panel,
.alert-feed,
.reports-list {
    color: #e2e8f0 !important;
}

/* Settings categories */
.settings-categories,
.settings-category,
.settings-category *,
.setting-item,
.setting-item * {
    color: #e2e8f0 !important;
}

/* Ensure white background sections have dark text */
.chart-container,
.locations-panel,
.recent-cases,
.cases-table-container,
.map-container,
.location-stats,
.metric-card {
    background: #ffffff !important;
    color: #1f2937 !important;
}

.chart-container *,
.locations-panel *,
.recent-cases *,
.cases-table-container *,
.map-container *,
.location-stats *,
.metric-card * {
    color: #1f2937 !important;
}

/* Override any remaining invisible text */
.invisible-text-fix,
.invisible-text-fix * {
    color: #ffffff !important;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5) !important;
}