* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 95%;
}

/* Login Section Styles */
.login-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-section h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Table Section Styles */
.table-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-section h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.table-container {
    margin-bottom: 30px;
}

.table-scroll {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

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

table:not(.narrow-table) {
    min-width: 1400px;
}

table.narrow-table {
    max-width: 100%;
}

thead {
    background-color: #273C66;
    color: white;
}

th {
    padding: 12px 10px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #1a2847;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.4;
}

.subtitle-row-1 th {
    background-color: #273C66;
    font-size: 14px;
    font-weight: bold;
}

.subtitle-row-2 th {
    background-color: #617499;
    font-size: 11px;
    font-weight: normal;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    min-height: 50px;
    font-size: 13px;
    line-height: 1.5;
}

table:not(.narrow-table) td {
    min-width: 150px;
}

table.narrow-table td {
    min-width: auto;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #da190b;
}

/* Form Section Styles */
.form-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.form-section h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.info-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.table-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* Editable table cells */
td[contenteditable="true"] {
    cursor: text;
    min-height: 20px;
}

td[contenteditable="true"]:focus {
    outline: 2px solid #4CAF50;
    background-color: #f9f9f9;
}

td[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #999;
}

/* Table Controls */
.table-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.control-btn {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
}

.control-btn:hover {
    background-color: #0b7dda;
}

.remove-btn {
    background-color: #ff9800;
}

.remove-btn:hover {
    background-color: #e68900;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.export-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.pdf-btn {
    background-color: #e53935;
    color: white;
}

.pdf-btn:hover {
    background-color: #c62828;
}

.csv-btn {
    background-color: #43a047;
    color: white;
}

.csv-btn:hover {
    background-color: #2e7d32;
}

/* Back Button */
.back-button {
    background-color: #95a5a6;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.back-button:hover {
    background-color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 600px) {
    .info-fields {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        flex-direction: column;
    }

    .table-controls {
        flex-direction: column;
    }
}
