/* AI Workforce Solutions — Operations Platform */

:root {
    --primary: #337ab7;
    --primary-light: #5aa1dd;
    --primary-dark: #275a86;
    --navy: #0b2a4a;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --bg-page: #f0f2f5;
    --bg-secondary: #f8f9fa;
    --text-dark: #333;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --card-bg: #fff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
    padding-top: 44px;
    background: var(--bg-page);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin-top: 0; line-height: 1.3; }

/* ── Fixed Contact Bar ── */
.contact-fixed {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--navy); color: #fff;
    text-align: center; padding: 8px 10px;
    z-index: 1040; font-size: 14px;
}
.contact-title { margin: 0; font-size: 14px; font-weight: normal; }
.contact-title span { font-weight: bold; }

/* ── Header ── */
.header-flex {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--primary); color: #fff;
    padding: 12px 20px; gap: 20px;
}
.logo { flex-shrink: 0; }
.logo-img { height: 50px; width: auto; }
.title { flex-grow: 1; text-align: center; }
.title h1 { margin: 0; font-size: 24px; font-weight: 700; }
.title p { margin: 4px 0 0; font-size: 14px; opacity: 0.9; }
.user-area { flex-shrink: 0; }
.welcome-panel { display: flex; align-items: center; gap: 8px; }

/* ── Navigation ── */
.main-menu {
    background: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.main-menu li { position: relative; }
.main-menu a {
    display: block; color: #fff; padding: 12px 18px;
    text-decoration: none; font-size: 14px; transition: background 0.2s;
}
.main-menu a:hover { background: var(--primary-light); text-decoration: none; }
.main-menu li:hover > ul { display: block; }
.main-menu ul ul {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--primary-dark); min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; flex-direction: column;
}
.main-menu ul ul li { width: 100%; }
.main-menu ul ul a { padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 13px; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Cards ── */
.card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 1rem;
    padding: 1.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-block; padding: 0.5rem 1rem; border: 1px solid transparent;
    border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer;
    text-decoration: none; transition: all 0.15s; line-height: 1.5;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-secondary); color: var(--primary); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 14px; color: var(--text-dark); }
.form-control {
    display: block; width: 100%; padding: 0.5rem 0.75rem;
    font-size: 15px; line-height: 1.5; color: var(--text-dark);
    background: #fff; border: 1px solid var(--border); border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,122,183,0.15); outline: none; }
select.form-control { appearance: auto; }
small { font-size: 13px; color: var(--text-muted); }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: rgba(51,122,183,0.04); }

/* ── Alerts / Flash Messages ── */
.alert {
    padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem;
    font-size: 14px; border: 1px solid transparent;
}
.alert-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.alert-error, .alert-danger { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.alert-warning { background: #fff3cd; border-color: #ffeeba; color: #856404; }
.alert-info { background: #d1ecf1; border-color: #bee5eb; color: #0c5460; }

/* ── Dashboard Stats ── */
.stat-card { text-align: center; padding: 1.5rem; }
.stat-card .stat-value { font-size: 2em; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Hero Section ── */
.hero-compact { background: #fff; padding: 2.5rem 0; margin-bottom: 1.5rem; }
.hero-compact h1 { color: var(--primary); }
.value-strip { background: var(--bg-secondary); padding: 1rem 0; border-top: 3px solid var(--primary); }

/* ── Login ── */
.login-dropdown { min-width: 280px; }
.login-compact { position: relative; }

/* ── Footer ── */
footer { margin-top: 3rem; }
.footer-container {
    display: flex; justify-content: space-between; max-width: 1200px;
    margin: 0 auto; padding: 0 20px; gap: 2rem;
}
.footer-section { flex: 1; }
.footer-section h4 { margin-bottom: 12px; font-size: 16px; }
.hours-table { width: 100%; color: #fff; }
.hours-table td { padding: 3px 0; }
.hours-table td:last-child { text-align: right; }
.footer-privacy { text-align: center; margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); }
.footer-privacy a { color: #fff; text-decoration: underline; }
.footer-copyright { text-align: center; margin-top: 8px; font-size: 13px; opacity: 0.85; }

/* ── Utility ── */
.text-brand { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.15em; color: var(--text-muted); }
.bg-primary { background-color: var(--primary) !important; }
.feature-card-crisp { transition: transform 0.2s; }
.feature-card-crisp:hover { transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; text-align: center; gap: 10px; padding: 10px; }
    .title h1 { font-size: 20px; }
    .user-area { width: 100%; text-align: center; }
    .main-menu ul { flex-direction: column; }
    .main-menu ul ul { position: static; display: block; box-shadow: none; background: var(--primary); }
    .footer-container { flex-direction: column; gap: 1.5rem; }
    .contact-fixed { font-size: 12px; padding: 5px; }
    .table { font-size: 13px; }
    .table th, .table td { padding: 0.5rem; }
}
@media (max-width: 576px) {
    .container { padding: 0 0.75rem; }
    body { font-size: 14px; }
}

/* ── Bootstrap Replacements (no Bootstrap CSS loaded) ── */
.dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 280px; z-index: 1050;
    padding: 0.5rem;
}
.dropdown-menu.show { display: block; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-close { background: none; border: none; font-size: 1.2em; cursor: pointer; float: right; color: inherit; opacity: 0.7; }
.btn-close:hover { opacity: 1; }
.btn-close::after { content: '×'; }
.alert-dismissible { padding-right: 2.5rem; position: relative; }
.alert-dismissible .btn-close { position: absolute; right: 0.75rem; top: 0.75rem; }
.fade.show { opacity: 1; }
.shadow-lg { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.p-3 { padding: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.me-2 { margin-right: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.w-100 { width: 100%; }
.form-control-sm { padding: 0.4rem 0.6rem; font-size: 14px; }
.border-0 { border: none; }
.dropdown { position: relative; }
