/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Header and Navigation Bar */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

header img {
    height: 40px;
    margin-right: 15px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #e0e0e0;
}

/* Icon buttons */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    background-color: #ddd;
    border-radius: 50%;
    font-size: 16px;
}

/* Section Titles */
h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #444;
}

/* Cards for Aircraft Types */
.aircraft-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.aircraft-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.aircraft-card:hover {
    transform: scale(1.05);
}

.aircraft-card h3 {
    color: #0056b3;
    margin-bottom: 8px;
}

/* Flights Table */
.flights table {
    width: 100%;
    background-color: #ffffff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flights th, .flights td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.flights th {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

.flights td {
    color: #555;
}

.flights tr:hover {
    background-color: #f9f9f9;
}

/* Filter Section */
.filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter input, .filter button {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1em;
}

.filter button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter button:hover {
    background-color: #0056b3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2em;
    color: #555;
}

/* Statistic Cards Styling */
.statistics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card i {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}

.stat-card p {
    font-size: 1.5em;
    font-weight: bold;
    color: #444;
}

#map {
    height: 300px; /* Adjusted height of the map */
    width: 100%; /* Full width to match other elements */
    margin-top: 20px; /* Add some space above the map */
}
.leaflet-control-layers {
    z-index: 1000; /* Make sure the control layers are on top */
}