<?php
// FILE: style.css
// CSS cho toàn bộ ứng dụng.

/* --- General & Login Page --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    color: #333;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1617109826131-e1978b31a37a?q=80&w=2070') no-repeat center center;
    background-size: cover;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form .logo {
    width: 150px;
    margin-bottom: 15px;
}

.login-form h2 {
    color: #cc0000;
    margin-bottom: 10px;
}

.login-form p {
    margin-bottom: 25px;
    color: #555;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Important */
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #a00000;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- Dashboard --- */
.dashboard-header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.5em;
}

.header-info span {
    margin-right: 20px;
}

.btn-logout, .btn-view {
    background-color: #cc0000;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-view {
    background-color: #007bff;
}

.btn-logout:hover, .btn-view:hover {
    opacity: 0.8;
}

.dashboard-main {
    padding: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.card h2 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #cc0000;
}

.form-section .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-section .form-row .input-group {
    flex: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

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

table tr:hover {
    background-color: #f1f1f1;
}

<style>
/* Thêm các style mới này vào tệp style.css của bạn */

/* Bố cục Grid cho dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* Form phụ (Thêm bàn nâng) */
.sub-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}
.sub-form .input-group {
    flex-grow: 1;
    margin-bottom: 0;
}
.btn-submit-small {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-submit-small:hover {
    background-color: #0056b3;
}

/* Bảng đơn giản */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.simple-table th, .simple-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.simple-table th {
    text-align: left;
    background-color: #f8f9fa;
}


/* Nút bấm trong bảng */
.btn-delete, .btn-complete {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
}
.btn-delete {
    background-color: #dc3545;
}
.btn-delete:hover {
    background-color: #c82333;
}
.btn-complete {
    background-color: #28a745;
}
.btn-complete:hover {
    background-color: #218838;
}

/* Biển số xe trong bảng */
.license-plate-small {
    background-color: #343a40;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
}
</style>