body {
    background-color: #f4e4bc;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.top-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        align-items: center;
    }
}

.departure-board {
    flex: 1;
    max-width: 500px;
    background-color: #1a1a1a;
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
    border: 5px solid #333;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    text-align: left;
}

.cover-container {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.cover-img {
    width: 100%;
    height: auto;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 5px;
}

.ticket {
    background-color: #fff;
    border: 2px solid #003366;
    box-shadow: 10px 10px 0px #003366;
    padding: 20px;
    position: relative;
    margin: 0 auto;
    max-width: 450px;
    border-radius: 5px;
}

.board-header {
    background-color: #333;
    color: #aaa;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-led {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
    animation: pulse 1s infinite;
}

.row-led {
    width: 6px;
    height: 6px;
    background-color: #004400;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.state-booked .row-led.active {
    background-color: #00ff00;
    box-shadow: 0 0 8px #00ff00;
    animation: blink 0.5s infinite;
}

.state-boarding .row-led.active {
    background-color: #ffae00;
    box-shadow: 0 0 8px #ffae00;
    animation: blink 0.5s infinite;
}

.state-departed .row-led {
    background-color: #ff0000 !important;
    box-shadow: 0 0 8px #ff0000;
}

.status-text {
    color: #fff;
    font-weight: bold;
}

.state-boarding .status-text {
    color: #ffae00;
}

.state-departed .status-text {
    color: #ff4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.board-row {
    padding: 8px 15px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.row-time {
    flex-grow: 1;
}

.status-booked {
    color: #fff;
    font-weight: bold;
}

header h1 {
    font-size: 3rem;
    color: #003366;
    margin-bottom: 0;
    letter-spacing: 5px;
    font-weight: bold;
}

.subtitle {
    font-style: italic;
    margin-bottom: 30px;
    color: #555;
}

.ticket {
    background-color: #fff;
    border: 2px solid #003366;
    box-shadow: 10px 10px 0px #003366;
    padding: 20px;
    position: relative;
    margin: 0 auto;
    max-width: 450px;
    border-radius: 5px;
}

.ticket-header {
    background-color: #003366;
    color: white;
    padding: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.ticket-body {
    text-align: left;
    padding: 20px 0;
}

.row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.row label {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.row input, .row select {
    border: none;
    border-bottom: 2px dotted #000;
    background: transparent;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
}

.btn {
    background-color: #003366;
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-weight: bold;
}

.btn:hover {
    background-color: #0055aa;
}

.ticket-footer {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 20px;
    opacity: 0.6;
}

.hidden {
    display: none;
}

.success {
    text-align: center;
}

.stamp {
    border: 4px double red;
    color: red;
    font-weight: bold;
    font-size: 2rem;
    display: inline-block;
    padding: 5px 20px;
    transform: rotate(-15deg);
    margin: 20px 0;
    border-radius: 5px;
}
