body {
    background-color: #062343;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 420px;
    margin: 0 auto;
}

h1 {
    color: white;
    margin-bottom: 5px;
}

p {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
}
    
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #062343;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

h2 {
    color:#062343;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.time-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.summary-box {
    background-color: #eaf1f8;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.summary-box span {
    display: block;
    color: #062343;
    font-size: 14px;
    margin-bottom: 5px;
}

.summary-box strong {
    display: block;
    color: #062343;
    font-size: 24px;
}

textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #062343;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.history-section {
    margin-top: 25px;
}

.history-section h2 {
    color: #ffffff;
}

.flight-card {
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.flight-card p {
    color: #062343;
    margin: 5px 0;
}

.flight-card strong {
    color: #062343;
}

.history-page {
    padding: 24px;
}

.history-page h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

#history-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

#history-table th,
#history-table td {
    border: 1px solid #cccccc;
    padding: 10px 12px;
    text-align: center;
    white-space: nowrap;
    color: #062343;
}

#history-table th {
    background-color: #eaf1f8;
    font-weight: bold;
}

#history-table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

.history-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 14px;
    background-color: #eaf1f8;
    color: #062343;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.history-button:hover {
    background-color: #dce7f2;
}

.hours-page {
    padding: 24px;
}

.hours-page h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.hours-page h2 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 10px;
}

#pilot-hours-table,
#crew-hours-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

#pilot-hours-table th,
#pilot-hours-table td,
#crew-hours-table th,
#crew-hours-table td {
    border: 1px solid #cccccc;
    padding: 10px 12px;
    text-align: center;
    color: #062343;
    white-space: nowrap;
}

#pilot-hours-table th,
#crew-hours-table th {
    background-color: #eaf1f8;
    font-weight: bold;
}

#pilot-hours-table tbody tr:nth-child(even),
#crew-hours-table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

/* Month Header */
.month-header td {
    background: #dfeaf5;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    padding: 10px;
}

/* Monthly Summary */
.month-summary td {
    background: #eef4fa;
    font-weight: bold;
    border-top: 2px solid #b7c7d9;
}

/* Annual Summary */
.annual-summary td {
    background: #cdddec;
    font-weight: bold;
    border-top: 3px solid #7d96ad;
    font-size: 17px;
}
