:root {
    --primary-color: #003366; /* Gendarmerie Dark Blue */
    --secondary-color: #0055a4; /* Lighter Blue */
    --accent-color: #ef4135; /* Red */
    --text-color: #333333;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-area h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-area p {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover, nav a.btn-login {
    background-color: rgba(255,255,255,0.1);
}

nav a.btn-login {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

nav a.btn-login:hover {
    background-color: #d32f2f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

/* Services Grid */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border-left: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #666;
}

/* Emergency Numbers */
.emergency-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.emergency-item {
    text-align: center;
}

.emergency-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.emergency-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--primary-color);
    color: white;
    padding: 3rem 1rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    margin: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    opacity: 0.9;
}

/* Login Page Specifics */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header img {
    height: 80px;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-block:hover {
    background-color: var(--secondary-color);
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #e9ecef;
    color: #666;
    margin-top: auto;
}

.offline-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Event List */
.event-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.event-date {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 120px;
}

.event-details h4 {
    margin-bottom: 0.2rem;
}

.event-details p {
    font-size: 0.9rem;
    color: #666;
}
