
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background: linear-gradient(135deg, #171718 0%, #0a0d11 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-section {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.content-section h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-section h3 {
    color: #2a5298;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content-section h4 {
    color: #444;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.content-section ul {
    margin: 1rem 0 1.5rem 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Special styling for main bullet points */
.main-points {
    list-style: none;
    margin-left: 0;
}

.main-points > li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.main-points > li:before {
    content: "●";
    color: #667eea;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Sub-lists */
.sub-list {
    list-style-type: disc;
    margin: 0.5rem 0 1rem 1.5rem;
}

.sub-list li {
    margin-bottom: 0.5rem;
}

/* Special styling for disclaimer sections */
.disclaimer-section {
    background: #f8f9ff;
    border-left: 4px solid #ff6b6b;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.disclaimer-section h4 {
    color: #c92a2a;
    margin-top: 0;
}

/* How to Use Section */
.usage-guide {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.usage-guide h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Contribution Section */
.contribution-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.contribution-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contribution-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contribution-card h4 {
    color: white;
    margin-bottom: 1rem;
}

/* Legacy styles for other pages */
.banner {
    position: relative;
    height: 100vh;
    background: url('/assets/crime-srilanka.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 1rem 2rem;
}

.banner-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.25rem;
}

section {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.table-container { 
    overflow-x: auto; 
    padding: 0 1rem; 
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 2rem;
}

thead {
    background-color: #333;
    color: white;
}

th, td {
    padding: 0.6rem;
    text-align: center;
    border: 1px solid #ccc;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.note {
    text-align: center;
    font-style: italic;
    color: #666;
}

footer {
    background-color: #f2f2f2;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

.filter-input, .filter-select {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.encouragement {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: #e9f5e9;
    border: 1px solid #cde5cd;
    border-radius: 6px;
}

table thead th {
    vertical-align: bottom;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    .main-points > li {
        padding-left: 1.5rem;
    }
    
    .contribution-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .usage-guide,
    .contribution-section {
        padding: 1.5rem;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .main-points > li {
        padding-left: 1rem;
        font-size: 0.9rem;
    }
    
    .content-section li {
        font-size: 0.9rem;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero {
        display: none;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
