body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 20px;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}
h1 {
    color: #2800A0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
}
.dashboard-container {
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    background: #00D66C;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.1);
}
.dashboard-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
}
.dashboard {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.dashboard div {
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 20%;
    margin: 10px;
    position: relative;
}
.dashboard div h3 {
    margin: 5px 0;
    color: #2800A0;
    font-size: 1.2em;
}
.dashboard div p {
    margin: 5px 0;
    font-size: 1em;
}
.dashboard .filter-btn {
    background-color: #FF3268;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.3s;
}
.dashboard .filter-btn:hover {
    background-color: #e3225a;
    transform: scale(1.1);
}
.top-right-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}
.top-right-buttons button {
    background-color: #FF3268;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}
.top-right-buttons button:hover {
    background-color: #e3225a;
    transform: scale(1.1);
}
.top-right-buttons button i {
    margin-right: 5px;
}
.filter-menu, .settings-menu {
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: max-height 0.3s, opacity 0.3s;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}
.filter-menu.show, .settings-menu.show {
    display: block;
    max-height: 300px;
    opacity: 1;
}
.filter-menu input, .filter-menu select, .settings-menu input, .settings-menu select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.filter-menu button, .settings-menu button {
    background-color: #2800A0;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin: 20px auto 0;
    transition: background-color 0.3s, transform 0.3s;
}
.filter-menu button:hover, .settings-menu button:hover {
    background-color: #1d006d;
    transform: scale(1.05);
}
.flight-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
}
.flight-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.flight-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flight-info p {
    margin: 0;
}
.time, .status, .registration {
    font-weight: bold;
}
.time, .registration, .callsign {
    color: #2800A0;
}
.status {
    color: #00D66C;
}
.progress-bar-background {
    background-color: #e0e0e0;
    height: 5px;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    width: 30%; /* Korter maken */
    margin: 10px auto; /* Center de balk */
}
.progress-bar {
    background-color: #00D66C;
    height: 5px;
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
.dark-mode {
    background-color: #121212;
    color: #fff;
}
.dark-mode .flight-card {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}
.dark-mode .status {
    color: #66BB6A;
}
.dark-mode .progress-bar-background {
    background-color: #444;
}
img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    margin: 10px auto 0;
    display: block;
}
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    position: absolute;
}
.badge.registration {
    background-color: #2800A0;
    top: 10px;
    left: 10px;
}
.badge.callsign {
    background-color: #FF3268;
    top: 10px;
    right: 10px;
}
.badge.status {
    background-color: #00D66C;
    bottom: 10px;
    right: 10px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.info-item i {
    margin-right: 10px;
    color: #2800A0;
}
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupAnim 0.3s ease-out;
}
@keyframes popupAnim {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}
.popup-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.popup-details .info-box {
    padding: 10px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.popup-details .info-box h4 {
    margin-top: 0;
    color: #2800A0;
}
.metar-container {
    display: flex;
    gap: 20px;
}
.metar-box {
    flex: 1;
    padding: 10px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.metar-box h4 {
    margin-top: 0;
    color: #2800A0;
}
#map {
    height: 300px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#toggle-ranges {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
#toggle-ranges input {
    margin-right: 10px;
}
.warning-box {
    background-color: #ffcccc;
    color: #cc0000;
    border: 1px solid #cc0000;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}
.warning-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
}
