body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

input[type="password"] {
    padding: 12px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    padding: 12px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button:hover {
    background: #45a049;
}

.error {
    color: red;
    margin-bottom: 15px;
}

.container {
    padding-top: 20px;
}

.tab-content {
    width: 100%;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    text-align: center;
}

.hero-image {
    width: 100%;
    height: auto;
}

.download-button {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
}

h2, h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Bảng */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

thead {
    background-color: #007BFF;
    color: white;
}

tbody tr:hover {
    background-color: #f1f9ff;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    text-align: center;
}

.modal-content .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.modal-content label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.modal-content .grid > div {
    display: flex;
    flex-direction: column;
}

.modal-content input,
.modal-content textarea {
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    resize: none;
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
    white-space: pre-wrap;
    grid-column: span 2;
}

.hidden-field {
    display: none;
}

.modal-content button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #218838;
}

.modal-content button.cancel:hover {
    background-color: #c82333;
}

.modal-content button.pending {
    background-color: #ffc107;
    color: #333;
}

.modal-content button.pending:hover {
    background-color: #e0a800;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.summary-labels {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.summary-labels div {
    display: flex;
    flex-direction: row;
    flex: 1 1 250px;
    min-width: 250px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    align-items: center;
}

.summary-labels div strong {
    flex: 0 0 140px;
    font-weight: bold;
    color: #007BFF;
    margin-right: 10px;
    display: inline-block;
}

/* RESPONSIVE: Thiết bị nhỏ hơn 800px */
@media (max-width: 800px) {
    .modal-content .grid textarea {
        grid-column: span 1;
    }
}

/* RESPONSIVE: Thiết bị di động nhỏ */
@media (max-width: 600px) {
    body {
        font-size: 80%;
    }

    h2, h3 {
        font-size: 18px;
    }

    .modal-content {
        padding: 10px;
        font-size: 14px;
    }

    .modal-content .grid {
        grid-template-columns: 1fr;
    }

    .modal-content button {
        font-size: 14px;
        padding: 10px;
    }

    .summary-labels div {
        min-width: 100%;
    }
}
