* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 40px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.bus-chart-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    overflow-x: auto;
}

.bus {
    background: #f5f5f5;
    border: 3px solid #333;
    border-radius: 20px;
    padding: 30px;
    min-width: fit-content;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bus-header {
    background: #333;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.bus-seats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.seat {
    width: 70px;
    height: 70px;
    border: 2px solid #999;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    padding: 5px;
}

.seat:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.05);
}

.seat.occupied {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.seat.occupied:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.seat-number {
    display: block;
    font-size: 0.8em;
    opacity: 0.7;
}

.seat-name {
    display: block;
    font-size: 0.9em;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 0.9em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card p {
    font-size: 2.5em;
    font-weight: bold;
}

footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #ddd;
}
