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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.5;
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2a5298;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.lang-btn:hover:not(.active) {
    background: #f0f2f5;
}

/* Hindi font support */
[lang="hi"] body,
html:has(.lang-btn[data-lang="hi"].active) body {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: white;
}

.stat-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    min-width: 200px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #2a5298;
}

.stat-label {
    color: #4a5568;
    margin-top: 10px;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Alerts List */
.recent-alerts {
    padding: 60px 0;
    background: #f0f2f5;
}

.alerts-list {
    background: white;
    border-radius: 16px;
    padding: 20px;
}

.alert-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.alert-type {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

.alert-type.scam-call { background: #fee2e2; color: #dc2626; }
.alert-type.phishing { background: #fed7aa; color: #ea580c; }
.alert-type.upi-fraud { background: #fef3c7; color: #d97706; }
.alert-type.sim-swap { background: #dbeafe; color: #2563eb; }

.alert-location {
    color: #4a5568;
    font-size: 14px;
}

.alert-time {
    color: #94a3b8;
    font-size: 12px;
}

.alert-description {
    margin-top: 8px;
    color: #333;
    font-size: 14px;
}

.alert-detail {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Emergency Box */
.emergency {
    padding: 60px 0;
}

.emergency-box {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.emergency-numbers {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.emergency-number {
    text-align: center;
}

.emergency-number .number {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.emergency-number .label {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #94a3b8;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}

.disclaimer {
    margin-top: 10px;
    font-size: 12px;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Map Container */
.map-container {
    height: 400px;
    background: #e0e0e0;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Search and Quick Links */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 2;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.search-btn {
    padding: 12px 24px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.search-btn:hover {
    background: #1e3c72;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    align-items: center;
}

.quick-link {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-link:hover {
    background: #e0e0e0;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f0f2f5;
}

.suggestion-name {
    font-weight: 500;
}

.suggestion-detail {
    font-size: 11px;
    color: #666;
}

/* Place Result Info */
.place-result {
    background: #e8f0fe;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-size: 18px;
}

.loading-overlay div {
    text-align: center;
    background: #1a1a2e;
    padding: 20px;
    border-radius: 12px;
}

/* Spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 10px auto;
}

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

/* Filter Bar */
.filter-bar {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Legend for Map */
.legend {
    background: white;
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 1000;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* No Alerts Message */
.no-alerts {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Emergency Note */
.emergency-note {
    margin-top: 20px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #d97706;
}

/* Articles Grid for Awareness Page */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.article {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article h2 {
    margin-bottom: 15px;
}

.article ul {
    margin-left: 20px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article p {
    margin-top: 10px;
}

/* Quiz Button Styles */
.quiz-btn {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-btn-correct {
    background: #2a5298;
    color: white;
}

.quiz-btn-wrong {
    background: #e0e0e0;
}

.quiz-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

/* Helpline List */
.helpline-item {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

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

.helpline-number {
    font-size: 18px;
    font-weight: 600;
    color: #2a5298;
    margin-top: 5px;
}

.helpline-timing {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .step {
        min-width: 100%;
    }
    
    .stat-cards {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        text-align: center;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .language-switcher {
        order: 2;
        margin-left: auto;
    }
    
    .mobile-menu-btn {
        order: 3;
    }
    
    .nav-links {
        order: 4;
        width: 100%;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .emergency-numbers {
        flex-direction: column;
        gap: 20px;
    }
}

/* Print Styles for Police Report */
@media print {
    .navbar,
    .hero-buttons,
    .filter-bar,
    .search-container,
    .quick-links,
    .legend,
    .language-switcher,
    .mobile-menu-btn,
    footer,
    .emergency-box,
    .btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .alert-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .container {
        padding: 0;
        margin: 0;
    }
}
