/* /lcnr_app/app/static/custom_style.css */
/* v1.1 FINAL: Fixes oversized logo on login page. */

/* --- Dark Theme (Default) --- */
.theme-dark {
    background-color: #121212;
    color: #ffffff;
}
.theme-dark .info-container,
.theme-dark .card {
    background-color: #1e1e1e;
    border: 1px solid #333;
}
.theme-dark .card-header { background-color: #2a2a2a; }
.theme-dark .table-dark { background-color: #2a2a2a; }
.theme-dark a { color: #bb86fc; }
.theme-dark a:hover { color: #d1b3ff; }
.theme-dark .form-control {
    background-color: #333;
    color: #fff;
    border-color: #555;
}
.theme-dark .form-control:focus {
    background-color: #444;
    color: #fff;
    border-color: #bb86fc;
    box-shadow: 0 0 0 0.2rem rgba(187, 134, 252, 0.25);
}
.theme-dark .login-container {
    background-color: rgba(30, 30, 30, 0.9);
    border: 1px solid #333;
    color: #fff;
}
.theme-dark .list-group-item {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* --- Light Theme --- */
.theme-light { background-color: #f4f7f6; color: #333; }
.theme-light .info-container, .theme-light .card { background-color: #ffffff; border: 1px solid #ddd; }
.theme-light .card-header { background-color: #e9ecef; color: #495057; }
.theme-light .table, .theme-light .table-dark { color: #212529; background-color: #fff; }
.theme-light .table-hover tbody tr:hover { color: #212529; background-color: rgba(0,0,0,.075); }
.theme-light a { color: #007bff; }
.theme-light a:hover { color: #0056b3; }
.theme-light .form-control { background-color: #fff; color: #495057; border-color: #ced4da; }
.theme-light .form-control:focus {
    background-color: #fff;
    color: #495057;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.theme-light .login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    color: #333;
}
.theme-light .list-group-item {
    background-color: transparent !important;
    border-color: #ddd !important;
    color: #333 !important;
}
.theme-light .bg-dark { background-color: #343a40 !important; }
.theme-light .text-light { color: #f8f9fa !important; }
.theme-light .dropdown-menu.bg-dark { background-color: #343a40 !important; }
.theme-light .dropdown-item.text-light:hover { background-color: #495057; }
.theme-light .info-container .list-group-item {
    color: #333 !important;
}


/* --- General Styles --- */
.login-container {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* --- FIX: Constrain the size of the logo on the login page --- */
.login-container .logo {
    max-width: 150px;
    max-height: 150px;
}

.warning-message {
    background-color: #ffc107;
    color: #333;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
}
