/* === Checkin Page Three-Column Layout === */
.page-wrapper-with-ads {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    padding: 20px;
    gap: 20px; 
}

.camera-column {
    flex: 0 0 320px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px; 
}

.main-content-column {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.ads-column-right {
    flex: 0 0 300px; 
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    padding-top: 20px; 
}

.ad-content-wrapper {
    border: 1px solid #eee;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    width: 100%; 
}

.ad-content-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; 
}

/* Ensure checkin-logo and checkin-container in the middle column are centered */
.checkin-logo {
    margin-bottom: 20px; /* Reverted space below logo */
}

/* .checkin-logo img rule removed */

.checkin-container {
    width: 100%; 
    max-width: 600px; 
}

/* Responsive adjustments if needed */
@media (max-width: 1024px) {
    .page-wrapper-with-ads {
        flex-direction: column;
        align-items: center; 
    }
    .camera-column,
    .ads-column-right {
        flex-basis: auto; 
        width: 100%;
        max-width: 500px; 
        margin-bottom: 20px;
    }
    .main-content-column {
         width: 100%;
         max-width: 600px; 
    }
}
/*
 * File: main.css
 * Path: /assets/css/main.css
 * Created: 2024-08-01 12:45:00 MST
 * Author: Robert Archer
 * Updated: 2025-04-07 - Cleanup and consolidation
 *
 * Description: Main stylesheet for the Arizona@Work Check-In System.
 */

/* --- Base Styles & Variables --- */
:root {
    --color-primary: #1E3A8A;    /* Deep Navy Blue */
    --color-primary-dark: #163075; /* Darker primary for hover */
    --color-secondary: #FF6B35; /* Arizona Sunrise Orange */
    --color-secondary-dark: #E85A29;/* Darker secondary for hover */
    --color-light: #F4F5F7;     /* Soft Gray */
    --color-white: #FFFFFF;     /* Clean White */
    --color-gray: #6B7280;      /* Medium Gray */
    --color-dark-gray: #4B5563; /* Dark Gray */
    --color-border: #E5E7EB;    /* Light Border Gray */
    --color-border-light: #eee; /* Lighter border for separators */
    --color-success-bg: #D1FAE5;
    --color-success-border: #6EE7B7;
    --color-success-text: #065F46;
    --color-error-bg: #FEE2E2;
    --color-error-border: #F87171;
    --color-error-text: #B91C1C;
    --color-warning-bg: #fff3cd;
    --color-warning-border: #ffeeba;
    --color-warning-text: #856404;
    --color-info-bg: #d1ecf1;
    --color-info-border: #bee5eb;
    --color-info-text: #0c5460;
    --color-trend-up: #10B981;   /* Green */
    --color-trend-down: #EF4444; /* Red */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 0.5rem; /* Consistent border radius */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark-gray);
    line-height: 1.5;
    font-size: 16px; /* Base font size */
}

a {
    color: var(--color-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}


/* --- Layout --- */
.layout {
    display: flex;
    min-height: 100vh;
}


/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto; /* Allow scrolling if content overflows */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    display: flex;
    flex-direction: column;
}

.logo { /* Container for logo in sidebar */
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-logo { /* Image tag for logo in sidebar */
    max-width: 100%; /* Fit container */
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 80px; /* Optional: Limit height */
}

.nav-menu {
    list-style: none;
    flex-grow: 1; /* Pushes user panel down */
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

.user-panel {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1em;
}

.user-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.875rem;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    margin-top: 0.5rem;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
}

.logout-btn i {
    margin-right: 0.75rem;
}


/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: 250px; /* Same as sidebar width */
    padding: 1.5rem;
    background-color: var(--color-light);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.site-selector {
    display: flex;
    align-items: center;
}

.site-selector label {
    margin-right: 0.75rem;
    font-weight: 500;
}

.site-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    background-color: var(--color-white);
    min-width: 150px;
    font-size: 0.95em;
}


/* --- Cards --- */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-body {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.card-footer {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-gray);
}
.card-footer i {
    margin-right: 0.3rem;
}

.trend-up { color: var(--color-trend-up); }
.trend-down { color: var(--color-trend-down); }


/* --- Tables --- */
.table-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.table-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

th {
    font-weight: 600;
    color: var(--color-dark-gray);
    background-color: rgba(244, 245, 247, 0.7);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: rgba(244, 245, 247, 0.5);
}

tbody td {
    font-size: 0.95em;
}

td.actions-cell { /* Specific class for action cells */
    white-space: nowrap;
    text-align: right;
}
td.actions-cell form, td.actions-cell a, td.actions-cell button {
    margin-left: 5px; display: inline-block; vertical-align: middle;
}
td.actions-cell form:first-child, td.actions-cell a:first-child { margin-left: 0; }


/* --- Status Badges --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}
.status-yes, .status-active {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
}
.status-no, .status-inactive {
    background-color: var(--color-error-bg); /* Use error colors for No/Inactive */
    color: var(--color-error-text);
}


/* --- Table Footer / Pagination --- */
.table-footer {
    display: flex;
    justify-content: space-between;

/* --- Chat Message Styles --- */
.chat-message {
    display: flex; /* This might already be applied by Bootstrap or another rule, but explicitly stating it is fine. */
    flex-direction: column; /* This is the key fix to stack paragraphs vertically. */
    /* Add other common chat message styles here if needed */
}

/* Specific styles for AI and User messages can still be applied if needed,
   e.g., .chat-message.ai for background color, .chat-message.user for alignment */
.chat-message.ai {
    /* Styles specific to AI messages, like background-color, align-self, etc. */
    /* The flex-direction: column; from .chat-message will be inherited. */
}

.chat-message.user {
    /* Styles specific to User messages */
}
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9em;
    color: var(--color-gray);
    flex-wrap: wrap;
    gap: 1rem;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-dark-gray);
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover {
    background-color: var(--color-light);
    border-color: var(--color-gray);
}
.page-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.5;
    white-space: nowrap;
}
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8em;
}
.btn i { margin-right: 0.5rem; }

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white); text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white); text-decoration: none;
}

.btn-danger {
    background-color: var(--color-error-text); /* Using error text color for stronger red */
    border-color: var(--color-error-text);
    color: var(--color-white);
}
.btn-danger:hover {
    background-color: #991B1B; /* Darker red for hover */
    border-color: #991B1B;
    color: var(--color-white); text-decoration: none;
}

.btn-success {
    background-color: var(--color-success-text);
    border-color: var(--color-success-text);
    color: var(--color-white);
}
.btn-success:hover {
    background-color: #047857; /* Darker success green */
    border-color: #047857;
    color: var(--color-white); text-decoration: none;
}

.btn-warning {
    background-color: #D97706; /* Amber-600 */
    border-color: #D97706;
    color: var(--color-white);
}
.btn-warning:hover {
    background-color: #B45309; /* Amber-700 */
    border-color: #B45309;
    color: var(--color-white); text-decoration: none;
}

.btn-info {
    background-color: #0E7490; /* Cyan-600 */
    border-color: #0E7490;
    color: var(--color-white);
}
.btn-info:hover {
    background-color: #155E75; /* Cyan-700 */
    border-color: #155E75;
    color: var(--color-white); text-decoration: none;
}

.btn-light {
    background-color: var(--color-light);
    border-color: var(--color-border);
    color: var(--color-dark-gray);
}
.btn-light:hover {
    background-color: #E5E7EB; /* Gray-200 */
    border-color: #D1D5DB; /* Gray-300 */
    color: var(--color-dark-gray); text-decoration: none;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.btn-outline-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-secondary);
    text-decoration: underline;
    padding-left: 0; padding-right: 0;
}
.btn-link:hover {
    color: var(--color-secondary-dark);
}


/* --- Forms --- */
.form-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.form-container.no-shadow { box-shadow: none; }
.form-container.no-padding { padding: 0; }


.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Spacing between form groups in a row */
    margin-bottom: 1.5rem;
}
.form-row:last-child { margin-bottom: 0; }

.form-group {
    flex: 1 1 calc(50% - 0.75rem); /* Default to two columns, adjust gap */
    display: flex;
    flex-direction: column;
    min-width: 200px; /* Minimum width for a form group */
}
.form-group.full-width {
    flex-basis: 100%;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
    font-size: 0.9em;
}

.form-control,
.form-select, /* Bootstrap class, ensure styling */
select.form-control /* For selects styled like form-controls */
{
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    background-color: var(--color-white);
    font-size: 0.95em;
    color: var(--color-dark-gray);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus,
select.form-control:focus
{
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}
.form-control[readonly] {
    background-color: var(--color-light);
    opacity: 0.8;
}
.form-control::placeholder {
    color: var(--color-gray);
    opacity: 0.8;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-check { /* For checkboxes and radios */
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.form-check-input {
    margin-right: 0.5rem;
    width: 1.1em;
    height: 1.1em;
    accent-color: var(--color-secondary); /* Modern way to color checkboxes/radios */
}
.form-check-label {
    font-weight: normal;
    font-size: 0.95em;
    margin-bottom: 0; /* Override label default */
}

.radio-group label, .checkbox-group label {
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 0.4rem;
}

.form-text { /* Helper text below inputs */
    font-size: 0.8em;
    color: var(--color-gray);
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.form-actions .btn { min-width: 100px; }


/* --- Tabs --- */
.nav-tabs {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
}
.nav-tabs .nav-item { margin-bottom: -1px; } /* Overlap border */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    color: var(--color-gray);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.nav-tabs .nav-link:hover {
    border-color: var(--color-border-light);
    color: var(--color-dark-gray);
}
.nav-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: var(--color-white);
    border-color: var(--color-border) var(--color-border) var(--color-white);
}

.tab-content {
    padding-top: 0; /* No extra padding if using .form-container inside */
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }


/* --- Modals (Basic Styling - Assumes Bootstrap JS for functionality) --- */
.modal { /* Outer wrapper */
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Dim background */
}
.modal.show { display: flex; align-items: center; justify-content: center; }

.modal-dialog {
    position: relative;
    margin: auto; /* Centering */
    pointer-events: none;
    max-width: 500px; /* Default max width */
    width: calc(100% - 2rem); /* Responsive width with padding */
}
.modal.show .modal-dialog { pointer-events: auto; }

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--color-white);
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: var(--border-radius);
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    border-top-left-radius: calc(var(--border-radius) - 1px);
    border-top-right-radius: calc(var(--border-radius) - 1px);
}
.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}
.close, .btn-close /* Bootstrap classes */ {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background-color: transparent;
    border: 0;
    padding: 0; /* Reset padding */
    cursor: pointer;
}
.close:hover, .btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: .75;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    border-bottom-right-radius: calc(var(--border-radius) - 1px);
    border-bottom-left-radius: calc(var(--border-radius) - 1px);
}
.modal-footer > :not(:first-child) { margin-left: .5rem; }
.modal-footer > :not(:last-child) { margin-right: .5rem; }


/* --- Alerts / Messages --- */
.message-area {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.95em;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
.message-area.hidden {
    opacity: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
    border: none;
}

.message-success {
    color: var(--color-success-text);
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
}
.message-error {
    color: var(--color-error-text);
    background-color: var(--color-error-bg);
    border-color: var(--color-error-border);
}
.message-warning {
    color: var(--color-warning-text);
    background-color: var(--color-warning-bg);
    border-color: var(--color-warning-border);
}
.message-info {
    color: var(--color-info-text);
    background-color: var(--color-info-bg);
    border-color: var(--color-info-border);
}


/* --- Login Page Specific Styles --- */
.login-page {
    background-color: var(--color-primary); /* Use primary color for background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-container {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-logo {
    margin-bottom: 1.5rem;
}
.login-logo img {
    max-width: 250px; /* Adjust as needed */
    height: auto;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.login-subtitle {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.login-container .form-group {
    margin-bottom: 1.5rem;
    text-align: left; /* Align labels left */
    flex-basis: 100%; /* Full width for login form groups */
}
.login-container .form-label {
    font-size: 0.85em;
}
.login-container .form-control {
    padding: 0.75rem 1rem; /* Slightly larger padding */
    font-size: 1em;
}
.login-container .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1em;
    margin-top: 0.5rem; /* Space above button */
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.875em;
    color: var(--color-gray);
}
.login-footer a {
    color: var(--color-secondary);
    font-weight: 500;
}


/* --- Check-in Page Specific Styles --- */
.checkin-page {
    background-color: var(--color-light); /* Or a custom background if desired */
    /* Removed flex, align, justify, min-height from body for checkin page */
    padding: 0; /* Reset body padding if any was inherited */
}

/* Styles for the main check-in container (form area) */
.checkin-container { /* This is the form's direct parent */
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%; /* Takes width from its column */
    /* max-width is already set in the three-column layout section */
    text-align: center;
    margin: 0 auto; /* Centering within its column if column is wider */
}

.checkin-logo { /* This is the logo above the form */
    /* max-width is set in the three-column layout section */
    /* margin-bottom is set in the three-column layout section */
    text-align: center; /* Centers the img if it's block/inline-block and smaller */
}
.checkin-logo img {
    max-width: 100%; /* Responsive within its container */
    height: auto;
    /* display: block; margin: 0 auto; /* Alternative centering for block images */
}

.checkin-container h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.checkin-container h2 {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.checkin-container .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}
.checkin-container .form-label {
    font-size: 0.9em;
}
.checkin-container .form-control {
    font-size: 1em;
}
.checkin-container .radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.checkin-container .radio-group label {
    font-weight: normal;
    font-size: 1em;
}
.checkin-container .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1em;
    margin-top: 1rem;
}
.checkin-container .description { /* For notifier description */
    font-size: 0.85em;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    margin-top: -0.3rem;
}
.checkin-container hr {
    margin: 1.5rem 0;
    border-top: 1px solid var(--color-border-light);
}

/* QR Reader Specific Styles */
#qr-reader {
    /* width is set inline in PHP, can be moved here if preferred */
    /* margin is set inline in PHP */
    border: 2px dashed var(--color-secondary) !important; /* Make border more prominent */
    background-color: #fdfdfd;
}
#qr-reader__scan_region video {
    border-radius: var(--border-radius); /* Match overall styling */
}
#qr-reader-results {
    font-weight: 500;
}
#qr-reader-results.success { color: var(--color-success-text); }
#qr-reader-results.error { color: var(--color-error-text); }


/* Ad display styling (simple version, can be expanded) */
.ad-display {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: #f9f9f9; /* Slightly off-white */
    text-align: center;
}
.ad-display img {
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 4px); /* Inner radius */
}
.ad-display .ad-text {
    font-size: 0.95em;
    line-height: 1.4;
}


/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-weight-bold { font-weight: bold; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Spinner for loading states */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: text-bottom;
    border: .15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-left: 0.5em;
}
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* For Select2 if used */
.select2-container .select2-selection--single {
    height: calc(1.5em + 1.2rem + 2px); /* Match form-control height */
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5; /* Match form-control line-height */
    padding-left: 0;
    color: var(--color-dark-gray);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 1.2rem); /* Match form-control height */
    right: 0.5rem;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}
.select2-dropdown {
    border: 1px solid var(--color-secondary);
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
}
.select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-secondary) !important;
    color: white !important;
}
.select2-results__option[aria-selected=true] {
    background-color: var(--color-primary-dark) !important;
    color: white !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static; /* Or relative if needed for specific layouts */
        overflow-y: visible;
    }
    .main-content {
        margin-left: 0;
        padding: 1rem; /* Reduce padding on smaller screens */
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-title { font-size: 1.25rem; }
    .site-selector { width: 100%; }
    .site-selector select { width: 100%; }

    .cards-row {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .form-row {
        flex-direction: column;
        gap: 0; /* Remove gap if stacking */
    }
    .form-group {
        flex-basis: 100%; /* Full width for form groups */
        margin-bottom: 1rem; /* Add margin back if gap removed */
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn { width: 100%; }

    .table-header, .table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .table-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .table-actions .btn { flex-grow: 1; text-align: center; }

    .modal-dialog {
        max-width: calc(100% - 1rem); /* More width on small screens */
        margin: 0.5rem auto;
    }
    .login-container {
        padding: 1.5rem;
    }
}

/* Specific overrides for Bootstrap if needed, or custom components */

/* Example: Custom styling for a specific element if Bootstrap's is not enough */
/* .my-custom-component { ... } */

/* Ensure Font Awesome icons are sized appropriately if not using i tag directly */
[class^="fa-"], [class*=" fa-"] {
  font-family: 'Font Awesome 5 Free', 'FontAwesome'; /* Ensure correct font family */
  font-weight: 900; /* For solid icons, adjust if using regular/light */
}

/* Fix for potential body top displacement by Google Translate */
body { top: 0px !important; }

/* Google Translate Widget Styling (from checkin.php, consolidated) */
#google_translate_element { font-size: 0.9em; margin-bottom: 1rem; }
.goog-te-gadget-simple { border: 1px solid var(--color-border); background-color: var(--color-white); padding: 0.3em 0.6em; border-radius: 4px; opacity: 0.9; transition: opacity 0.3s ease; }
.goog-te-gadget-simple:hover { opacity: 1.0; }
.goog-te-gadget-icon { display: none !important; }
.goog-te-menu-frame { box-shadow: var(--shadow); border: 1px solid var(--color-border); }
body > .skiptranslate { display: none !important; }


/* Budget Settings Page Specifics */
.budget-settings-container .nav-tabs .nav-link {
    font-size: 0.95em;
}
.budget-settings-container .form-container {
    padding-top: 1.5rem; /* Add some space above content in tab panes */
}

/* Finance Access Table Specifics */
#financeAccessTable th:nth-child(1), #financeAccessTable td:nth-child(1) { width: 40%; } /* User Name */
#financeAccessTable th:nth-child(2), #financeAccessTable td:nth-child(2) { width: 30%; } /* Department */
#financeAccessTable th:nth-child(3), #financeAccessTable td:nth-child(3) { width: 15%; text-align: center; } /* Can View */
#financeAccessTable th:nth-child(4), #financeAccessTable td:nth-child(4) { width: 15%; text-align: center; } /* Can Edit */

/* API Keys Table Specifics */
#apiKeysTable th.actions-cell, #apiKeysTable td.actions-cell {
    width: 150px; /* Adjust as needed for Revoke button */
}
#apiKeysTable th:nth-child(1) { width: 20%; } /* Name */
#apiKeysTable th:nth-child(2) { width: 30%; } /* Key (Partial) */
#apiKeysTable th:nth-child(3) { width: 35%; } /* Permissions */
/* Last column (Actions) will take remaining space or use the width above */

/* User Management Table Specifics */
#usersTable th.actions-cell, #usersTable td.actions-cell {
    width: 180px; /* Adjust for Edit/Delete buttons */
}
#usersTable th:nth-child(1) { width: 20%; } /* Username */
#usersTable th:nth-child(2) { width: 20%; } /* Full Name */
#usersTable th:nth-child(3) { width: 15%; } /* Role */
#usersTable th:nth-child(4) { width: 15%; } /* Department */
#usersTable th:nth-child(5) { width: 15%; } /* Site */
#usersTable th:nth-child(6) { width: 10%; text-align: center; } /* Site Admin */


/* Site Configuration - Questions Panel */
.question-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    background-color: var(--color-white);
}
.question-item .drag-handle {
    cursor: grab;
    margin-right: 1rem;
    color: var(--color-gray);
}
.question-item .question-text {
    flex-grow: 1;
    margin-right: 1rem;
}
.question-item .question-actions .btn {
    margin-left: 0.5rem;
}
.question-item.dragging { /* Style for item being dragged */
    opacity: 0.7;
    background-color: var(--color-light);
}
.drop-target { /* Style for placeholder when dragging */
    height: 50px;
    background-color: rgba(255, 107, 53, 0.1);
    border: 2px dashed var(--color-secondary);
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

/* Site Configuration - Ads Panel */
.ad-preview-container {
    border: 1px solid var(--color-border);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    background-color: #f8f9fa; /* Light background for preview */
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-preview-container img {
    max-width: 100%;
    max-height: 200px; /* Limit preview image height */
    object-fit: contain;
}
.ad-preview-container .ad-text-preview {
    white-space: pre-wrap; /* Preserve newlines in text ads */
    word-break: break-word;
    text-align: left;
}

/* Forum Styling */
.forum-container {
    /* General container for forum pages if needed */
}

.category-list .card {
    margin-bottom: 1.5rem;
}

.category-title-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}
.category-title-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.category-description {
    font-size: 0.9em;
    color: var(--color-gray);
    margin-bottom: 1rem;
}
.category-meta {
    font-size: 0.85em;
    color: var(--color-gray);
}
.category-meta span { margin-right: 1rem; }
.category-meta i { margin-right: 0.3rem; }

.topic-list .table tbody tr td:first-child {
    /* Make topic title more prominent */
}
.topic-title-link {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 1.05em;
}
.topic-title-link:hover {
    color: var(--color-primary-dark);
}
.topic-starter-info {
    font-size: 0.85em;
    color: var(--color-gray);
}
.topic-stats {
    font-size: 0.9em;
    text-align: center;
}
.last-post-info {
    font-size: 0.85em;
    color: var(--color-gray);
    white-space: nowrap;
}
.last-post-info .post-author { font-weight: 500; }

.post-container {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    background-color: var(--color-white);
}
.post-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa; /* Slightly different for post header */
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--color-gray);
}
.post-author-link {
    font-weight: 600;
    color: var(--color-primary);
}
.post-body {
    padding: 1rem 1.25rem;
    line-height: 1.6;
}
.post-body p:last-child { margin-bottom: 0; }

.reply-form-container .form-label {
    font-size: 1em; /* Slightly larger for reply */
}

/* Breadcrumbs */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
    font-size: 0.9em;
}
.breadcrumb-nav a {
    color: var(--color-secondary);
}
.breadcrumb-nav span { /* Separator */
    margin: 0 0.5rem;
    color: var(--color-gray);
}
.breadcrumb-nav .current-page {
    color: var(--color-dark-gray);
    font-weight: 500;
}

/* Client Portal Specific Styles */
.client-portal-page {
    background-color: var(--color-light);
    display: flex;
    flex-direction: column; /* Ensure header is above content */
    align-items: center;
    min-height: 100vh;
    padding-top: 2rem; /* Space for header */
}

.client-portal-header {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: fixed; /* Make header sticky */
    top: 0;
    left: 0;
    z-index: 1000;
}
.client-portal-logo img {
    max-height: 50px; /* Adjust as needed */
}
.client-portal-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}
.client-portal-nav a:hover, .client-portal-nav a.active {
    color: var(--color-white);
    text-decoration: underline;
}

.client-portal-container {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 800px; /* Wider container for portal content */
    margin-top: 100px; /* Space below fixed header (adjust if header height changes) */
    margin-bottom: 2rem;
}
.client-portal-container h1 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.client-portal-container .form-group {
    margin-bottom: 1.25rem;
}
.client-portal-container .radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.qr-code-display {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--border-radius);
    background-color: #fdfdfd;
}
.qr-code-display img {
    max-width: 300px; /* Adjust as needed */
    height: auto;
    border: 1px solid var(--color-border-light);
    padding: 10px; /* Padding around the QR image itself */
    background-color: var(--color-white);
}
.qr-code-display p {
    margin-top: 1rem;
    font-size: 0.95em;
    color: var(--color-gray);
}

/* Budget Allocation Page Specifics */
#allocationsTable th.number-col, #allocationsTable td.number-col {
    text-align: right;
    min-width: 100px; /* Ensure enough space for numbers */
}
#allocationsTable th.actions-col, #allocationsTable td.actions-col {
    text-align: center;
    width: 120px; /* Adjust for Edit/Void buttons */
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}
.filter-bar .form-group {
    margin-bottom: 0; /* Remove default margin if inside flex container */
    min-width: 150px; /* Minimum width for filter inputs */
}
.filter-bar .btn {
    align-self: flex-end; /* Align button to bottom if inputs wrap */
}

/* Budget Settings Page - Vendor/Budget/Grant Panels */
.list-group-item { /* Basic styling for list items in panels */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    margin-bottom: -1px; /* Overlap borders */
}
.list-group-item:first-child { border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); }
.list-group-item:last-child { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); margin-bottom: 0; }

.list-group-item .actions .btn { margin-left: 0.5rem; }

/* Reports Page */
.report-options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end; /* Align items to bottom for consistent button line */
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
.report-options-bar .form-group {
    margin-bottom: 0;
    min-width: 180px; /* Min width for date pickers etc. */
}

/* Chat / Notifications Bubble */
.notification-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease-out;
    z-index: 1000;
}
.notification-bubble:hover {
    transform: scale(1.1);
    background-color: var(--color-primary-dark);
}
.notification-bubble .badge { /* For unread count */
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.6em;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.chat-widget {
    position: fixed;
    bottom: 90px; /* Above bubble */
    right: 20px;
    width: 350px;
    max-height: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}
.chat-widget.open { display: flex; }

.chat-header {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0.8;
}
.chat-header .close-chat:hover { opacity: 1; }

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f9f9f9; /* Light background for messages */
}
.chat-message {
    margin-bottom: 0.75rem;
    display: flex;
}
.chat-message.sent { justify-content: flex-end; }
.chat-message.received { justify-content: flex-start; }

.message-bubble {
    max-width: 80%;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}
.chat-message.sent .message-bubble {
    background-color: var(--color-secondary);
    color: white;
    border-bottom-right-radius: 3px;
}
.chat-message.received .message-bubble {
    background-color: #e9e9eb; /* Light gray for received */
    color: #333;
    border-bottom-left-radius: 3px;
}
.message-meta {
    font-size: 0.75em;
    color: var(--color-gray);
    margin-top: 3px;
}
.chat-message.sent .message-meta { text-align: right; }

.chat-input-area {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid var(--color-border);
    background-color: white;
}
.chat-input-area input[type="text"] {
    flex-grow: 1;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9em;
    margin-right: 0.5rem;
}
.chat-input-area input[type="text"]:focus {
    outline: none;
    border-color: var(--color-secondary);
}
.chat-input-area button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chat-input-area button:hover { background-color: var(--color-primary-dark); }

/* Department Colors (Example - can be expanded or made dynamic) */
.dept-finance { border-left: 4px solid #FFC107; /* Amber */ }
.dept-employment { border-left: 4px solid #4CAF50; /* Green */ }
.dept-training { border-left: 4px solid #2196F3; /* Blue */ }
.dept-support { border-left: 4px solid #9C27B0; /* Purple */ }
.dept-outreach { border-left: 4px solid #FF5722; /* Deep Orange */ }

.card.dept-finance .card-icon { background-color: rgba(255, 193, 7, 0.1); color: #FFC107; }
.card.dept-employment .card-icon { background-color: rgba(76, 175, 80, 0.1); color: #4CAF50; }
/* Add more for other departments if needed */

/* Tooltip Styles (Basic) */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  pointer-events: none;
  z-index: 1000; /* Ensure tooltip is on top */
}
[data-tooltip]::before { /* The tooltip text */
  content: attr(data-tooltip);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;
  bottom: 125%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%);
}
[data-tooltip]::after { /* The tooltip arrow */
  content: '';
  border-style: solid;
  border-width: 5px;
  border-color: #333 transparent transparent transparent;
  bottom: calc(125% - 5px); /* Position arrow correctly */
  left: 50%;
  transform: translateX(-50%);
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  visibility: visible;
  opacity: 1;
}

/* Data Trend Indicator */
.data-trend {
    display: inline-flex;
    align-items: center;
    font-size: 0.85em;
    margin-left: 0.5rem;
}
.data-trend i {
    margin-right: 0.2rem;
}
.data-trend.up { color: var(--color-trend-up); }
.data-trend.down { color: var(--color-trend-down); }
.data-trend.neutral { color: var(--color-gray); }


/* Custom Scrollbar (Optional, Webkit only) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Final important overrides if absolutely necessary */
/* .some-element !important { ... } */
/* === Login Page Styles (from index.php) === */
body.login-page {
    font-family: 'Inter', sans-serif;
    background-color: #F4F5F7; /* var(--color-light) can be used if defined before this block */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-container {
    background-color: #FFFFFF; /* var(--color-white) */
    border-radius: 8px; /* var(--border-radius) or specific value */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* var(--shadow) or specific value */
    width: 400px;
    padding: 30px;
    max-width: 90%;
    margin: 20px;
}
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}
.login-logo img {
    max-width: 220px;
    height: auto;
}
.login-container h1 {
    color: #1E3A8A; /* var(--color-primary) */
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}
.message-area {
    padding: 10px;
    border-radius: 4px; /* Consider var(--border-radius) */
    margin-bottom: 20px;
    text-align: center;
}
.error-message {
    background-color: #FEE2E2; /* var(--color-error-bg) */
    border: 1px solid #F87171; /* var(--color-error-border) */
    color: #B91C1C; /* var(--color-error-text) */
}
.info-message {
    background-color: #D1FAE5; /* var(--color-success-bg) */
    border: 1px solid #6EE7B7; /* var(--color-success-border) */
    color: #065F46; /* var(--color-success-text) */
}
.form-group {
    margin-bottom: 20px;
}
label { /* Consider scoping to .login-container label if it affects other labels */
    display: block;
    margin-bottom: 5px;
    color: #4B5563; /* var(--color-dark-gray) */
    font-weight: 500;
}
/* Scope input styles to login page if they are too general */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #D1D5DB; /* var(--color-border) */
    border-radius: 4px; /* Consider var(--border-radius) */
    font-size: 16px;
    box-sizing: border-box;
}
.form-actions {
    margin-top: 30px;
}
/* Scope .btn styles if they are too general or conflict with Bootstrap */
.login-container .btn { /* Scoped to .login-container */
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px; /* Consider var(--border-radius) */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}
.login-container .btn-primary { /* Scoped to .login-container */
    background-color: #FF6B35; /* var(--color-secondary) */
    color: white; /* var(--color-white) */
}
.login-container .btn-primary:hover { /* Scoped to .login-container */
    background-color: #E85A29; /* var(--color-secondary-dark) */
}
.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #6B7280; /* var(--color-gray) */
}
.google-translate-container {
    margin-bottom: 15px;
    min-height: 30px;
}
#google_translate_element { /* This ID is specific enough */
    padding: 5px 0;
}
.login-footer .copyright { /* Scoped to .login-footer */
    font-size: 12px;
    margin-top: 10px;
}
/* === End Login Page Styles === */
/* === Chat Message AI Bubble Layout Fix === */
.chat-message.ai {
    flex-direction: column;
}