/* ====== Global Layout ====== */
html, body, #page-content, .app-container {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #212529;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* ====== Sidebar Styling ====== */
.sidebar {
    width: 250px;
    background-color: #003049;
    color: white;
    transition: all 0.3s ease;
    padding: 10px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sidebar.collapsed {
    width: 0px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-toggle {
    margin: 10px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Nav Links */
.nav-link {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    font-size: 13px;
}

.nav-link:hover {
    background-color: #005f73;
    padding-left: 10px;
}

/* ====== Main Content Styling ====== */
.main-content {
    padding: 20px;
}

/* ====== Login Page Styling ====== */
.login-page {
    background: url('https://images.unsplash.com/photo-1581090700227-1e8a6c2d5b03') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background-color: rgba(0, 66, 99, 0.85);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-box input,
.login-box button {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-box button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #0056b3;
}

.login-box .error-message {
    font-size: 0.9rem;
    color: #ffc107;
    margin-top: 10px;
}

/* ====== Responsive Styling ====== */
@media (max-width: 600px) {
    .login-box {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    #sidebar-col {
        width: 200px !important;
    }
    #content-col {
        margin-left: 0 !important;
    }
    .navbar .container {
        flex-wrap: nowrap !important;
    }
}

/* ====== Top Frame Styling ====== */
.status-frame {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ====== Dash DataTable Styling ====== */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet .dash-header {
    background-color: #f5f5f5;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet td,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet th {
    text-align: center;
    font-size: 13px;
    padding: 6px;
    color: #212529;
    border: 1px solid #ddd;
}

/* Zebra striping */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet tr:nth-child(odd) {
    background-color: #e6f2ff;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet tr:nth-child(even) {
    background-color: #ffffff;
}

/* ====== Form & Label Styling ====== */
label {
    font-size: 13px;
    color: #212529;
    font-weight: 600;
}

.Select-control, .Select-placeholder, .Select-menu-outer, .Select-menu, .DateInput_input {
    font-size: 13px !important;
    color: #212529;
}

/* ====== Button Styling ====== */
button, .btn {
    font-size: 13px !important;
    padding: 6px 12px;
}
