body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #222;
}

.header-logo {
    background: #fff;
    color: #044b7b;
    padding: 2em 0 1em 0;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

nav {
    background: #044b7b;
    padding: 0.5em 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background 0.2s;
}
nav a:hover {
    background: #22406e;
}

.main-content {
    min-height: 60vh;
    padding: 2em;
    background: #e0eaf5;
    color: #02416b;
    text-align: center;
    flex: 1;
}

.main-content table {
    margin: auto;
    border-collapse: collapse;
}

/* Right-align form labels in the main form */
.main-form {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1em 1em;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.formelement {
    margin: auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.main-form label {
    text-align: right;
    padding-right: 1em;
}
.main-form input,
.main-form textarea {
    width: 100%;
    box-sizing: border-box;
}



footer {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 1.5em 0 1em 0;
    font-size: 1em;
    position: relative;
    width: 100%;
    bottom: 0;
    margin-top: 0;
    letter-spacing: 1px;
}


/* Layout for main-content and side menu */
.main-layout {
    display: flex;
    min-height: 60vh;
}
.side-menu {
    width: 200px;
    background: #e0eaf5;
    padding: 2em 1em 2em 1em;
}
.side-menu ul {
    list-style: none;
    padding: 0;
    list-style-type: none;
}
.side-menu ul li {
    border-top: 1px solid #b0c4de;
    border-bottom: 1px solid #b0c4de;
    padding: 0.75em 0;
}
.side-menu h3 {
    margin-top: 0;
}

.side-menu ul li a,
.side-link {
    text-decoration: none;
    color: #0000FF;
}


/* Traffic display class */
.traffic-display {
    margin: auto;
    width: 60%;
    padding: 20px 10px 10px 10px; 
}

.drone-details {
    margin: auto;
    width: 80%;
    padding: 20px 10px 10px 10px; 
}


/* Drone information table class */
.drone-info {
    margin: auto;
    padding: 20px 10px 10px 10px; 
}


/* ------------------- Flight plan form styles ------------- */
flightplanform {
    max-width: 700px;
    margin: 0 auto; /* center form on the page */
    padding: 0 1rem;
    box-sizing: border-box;
}

/* group1: top and bottom borders */
.flightplangroup {
    border-top: 1.4px solid #b0c4de;
    border-bottom: 1px solid #b0c4de;
    padding: 1rem 0;
    /*margin: 1rem 0;*/
}

/* group2: label right aligned, input/select left aligned */
.plangroupitem {
    display: grid;
    grid-template-columns: 35% 65%;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 1rem 0;
}

.plangroupitem label {
    text-align: right;
    justify-self: end;
    padding-right: 0.5rem;
}

.plangroupitem input,
.plangroupitem select,
.plangroupitem textarea {
    width: 40%;
    box-sizing: border-box;
    justify-self: start;
    text-align: left;
}

/* group3: center the submit button */
.plansubmit {
    text-align: center;
    margin-top: 1rem;
}

.plansubmit input[type="submit"] {
    display: inline-block;
    padding: 1rem 1rem;
}