/* ==========================================================
   Bootstrap LinkedIn-style Theme Overrides
   Load AFTER Bootstrap CDN
   ========================================================== */

/* ---------- GLOBAL THEME VARIABLES ---------- */

:root {
    /* ===== PAGE ===== */
    --bs-body-bg: #f4f2ee;
    --bs-body-color: rgba(0, 0, 0, 0.9);

    /* ===== SURFACES (white elements that sit ON the page) ===== */
    --bs-card-bg: #ffffff;
    --bs-card-border-color: rgba(0, 0, 0, 0.08);
    --bs-border-color: rgba(0, 0, 0, 0.08);

    /* Override Bootstrap tertiary/secondary backgrounds to WHITE
       so .bg-body-tertiary, .bg-body-secondary, .bg-light stay white */
    --bs-tertiary-bg: #ffffff;
    --bs-tertiary-bg-rgb: 255, 255, 255;
    --bs-secondary-bg: #ffffff;
    --bs-secondary-bg-rgb: 255, 255, 255;
    --bs-light-rgb: 255, 255, 255;

    /* ===== TYPOGRAPHY ===== */
    --bs-secondary-color: rgba(0, 0, 0, 0.6);

    /* ===== LINKS ===== */
    --bs-link-color: #0a66c2;
    --bs-link-hover-color: #004182;

    /* ===== FORMS ===== */
    --bs-form-control-bg: #ffffff;

    /* ===== TABLES ===== */
    --bs-table-bg: #ffffff;
    --bs-table-striped-bg: #f8f7f5;
    --bs-table-hover-bg: #f3f2ef;
}


/* ---------- BODY / PAGE BACKGROUND ---------- */

body {
    background-color: var(--bs-body-bg);
}


/* ---------- CARDS (LinkedIn surface) ---------- */

.card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: none;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}


/* ---------- TABLES ---------- */

.table {
    --bs-table-bg: #ffffff;
    --bs-table-color: var(--bs-body-color);
}

.table > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #f8f7f5;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #f3f2ef;
}

/* table header — slightly muted like LinkedIn */
.table > thead {
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.table > thead > tr > th {
    background-color: #ffffff;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}


/* ---------- NAVBAR / TOPBAR ---------- */

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


/* ---------- LIST GROUP ---------- */

.list-group-item {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}


/* ---------- DROPDOWNS ---------- */

.dropdown-menu {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ---------- MODALS ---------- */

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}


/* ---------- OFFCANVAS ---------- */

.offcanvas {
    background-color: #ffffff;
}


/* ---------- ALERTS ---------- */

.alert {
    border-radius: 8px;
}


/* ---------- BADGES ---------- */

.badge {
    border-radius: 999px;
}


/* ---------- BUTTONS (subtle LinkedIn feel) ---------- */

.btn {
    border-radius: 999px;
}

.btn-light {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
    border-color: rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.6);
}


/* ---------- FORM CONTROLS ---------- */

.form-control,
.form-select {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}


/* ---------- PAGINATION ---------- */

.page-link {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}


/* ---------- ACCORDION ---------- */

.accordion-button {
    background-color: #ffffff;
}

.accordion-body {
    background-color: #ffffff;
}


/* ---------- TABS / NAV-TABS ---------- */

.nav-tabs .nav-link {
    border-radius: 0;
}

.nav-tabs .nav-link.active {
    background-color: #ffffff;
}


/* ---------- BREADCRUMB ---------- */

.breadcrumb {
    background-color: transparent;
}


/* ---------- UTILITIES (optional helper classes) ---------- */

.app-container {
    max-width: 1128px;
    margin: auto;
    padding: 24px 16px;
}

.surface {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 16px;
}
