/* General Reset */
/* Full Page Center Fix */
body {
    font-family: Arial, sans-serif;
    margin: 0;               /* remove 20px margin */
    background: linear-gradient(135deg, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;           /* full screen height */
    overflow: hidden;        /* remove scroll */
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1, h2, h3 {
    color:#ccc;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    background-color: #fff;
}

table th, table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #2980b9;
    color: #fff;
}

input, select, button {
    padding: 6px;
    margin: 3px 0;
    font-size: 14px;
}

button {
    cursor: pointer;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 3px;
}

button:hover {
    background-color: #2980b9;
}

a {
    text-decoration: none;
    color: #3498db;
    margin-right: 10px;
}

a:hover {
    text-decoration: underline;
}

form {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#seat_container {
    margin-top: 10px;
}

.seat_btn {
    width: 35px;
    height: 35px;
    margin: 2px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.seat_btn.selected {
    background-color: #27ae60;
    color: white;
}

.seat_btn:disabled {
    background-color: #c0392b;
    color: white;
} 

 

 

.login-card {
    width: 380px;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #2c5364;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    color: #777;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s;
    background: #fff;
    padding: 0 5px;
}

.form-group input:focus {
    border-color: #2c5364;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #2c5364;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    background: #2c5364;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: #203a43;
    transform: translateY(-2px);
}

.error {
    margin-top: 15px;
    background: #ffdddd;
    color: #c0392b;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(15px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 400px) {
    .login-card {
        width: 100%;
        padding: 25px;
    }
}

.bus_layout{
    width: 300px;
    margin-top: 10px;
}

.seat_row{
    display:flex;
    justify-content:center;
    margin-bottom:8px;
}

.seat_btn{
    width:45px;
    height:45px;
    margin:3px;
    border-radius:6px;
    border:1px solid #ccc;
    cursor:pointer;
    font-size:12px;
    font-weight:bold;
    background:#519A66;   /* available = green */
    color:white;
}

.seat_btn.selected{
    background:#f1c40f;   /* selected = yellow */
    color:black;
}

.seat_btn:disabled{
    background:#e74c3c;   /* booked = red */
    color:white;
    cursor:not-allowed;
}

.aisle{
    width:25px;
}