:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --bg-color: #e9ecef;
    --board-bg: #222;
    --board-text: #fff;
    --departure-color: #ffc107;
    --arrival-color: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-danger {
    background-color: #dc3545;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.flight-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f1f1;
}

.logo-preview {
    max-width: 50px;
    max-height: 50px;
}

/* Board Styles */
.board-body {
    background-color: #111;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #000;
    border-bottom: 2px solid #333;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.clock {
    font-size: 2em;
    font-weight: bold;
    color: #ffc107;
}

.date {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffc107;
}

.title {
    font-size: 1.5em;
    letter-spacing: 2px;
    color: #ccc;
    text-transform: uppercase;
}

.logo-area img {
    height: 40px;
}

.board-content {
    display: flex;
    height: calc(100vh - 82px);
}

.panel {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #333;
}

.panel:last-child {
    border-right: none;
}

.panel-title {
    text-align: center;
    margin: 0 0 10px 0;
    padding: 5px;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
}

.departure-title {
    background-color: var(--departure-color);
}

.arrival-title {
    background-color: var(--arrival-color);
}

.flight-table-header {
    display: grid;
    grid-template-columns: 0.8fr 1fr 2fr 2fr 0.5fr 1.2fr;
    padding: 5px 10px;
    background: #222;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.flight-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 2fr 2fr 0.5fr 1.2fr;
    padding: 8px 10px;
    background: #1a1a1a;
    border-bottom: 1px solid #000;
    align-items: center;
    font-size: 1.1em;

    /* Animation for "flipping" effect simulation */
    animation: flipIn 0.6s ease-out;
}

.empty-row {
    background: #111;
}

@keyframes flipIn {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }

    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

.airline-logo-sm {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    background: #fff;
    padding: 1px;
    border-radius: 2px;
}

.status-ontime {
    color: #28a745;
}

.status-delayed {
    color: #dc3545;
    animation: blink 2s infinite;
}

.status-boarding {
    color: #ffc107;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 10px;
    color: #888;
    font-size: 0.9em;
    width: 100%;
}

.admin-footer {
    margin-top: 20px;
    color: #666;
}

.board-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #000;
    color: #555;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.8em;
    z-index: 100;
}