body {
    font-family: "Segoe UI", sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

h2, h3 {
    text-align: center;
    color: #222;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

select, input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    padding: 12px 20px;
    background: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover:enabled {
    background: #0056b3;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.idle-section {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9fafc;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background: #007bff;
    color: white;
}

#logTable tbody tr.odd {
    background-color: #f9f9f9;
}

#logTable tbody tr.even {
    background-color: #e7f3ff;
}

tr.active-row {
    background: #fff3cd !important;
}

#summaryBox {
    background: #eef3f9;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    font-weight: bold;
}

.summary-table {
    margin-top: 15px;
    border-collapse: collapse;
    width: 100%;
}

.summary-table th, .summary-table td {
    border: 1px solid #bbb;
    padding: 6px;
}

.summary-table th {
    background: #28a745;
    color: white;
}

/* Custom Select2 Styling */
.select2-container {
    width: 100% !important;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    top: 1px;
}

.logo {
    display: block;
    margin: 0 auto;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
}