/* =====================================================
   GLOBAL (layout only — no colors)
   ===================================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Keep bottom margin to prevent content from overlapping a fixed footer */
body {
    margin-bottom: 60px;
}

.tab-content {
    padding-top: 2rem;
}

.tabs-search-container {
    padding: 0 1rem;
    display: flex;
    align-items: flex-end;
}

.tabs-section {
    flex: 0 0 auto;
}

.search-section {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    padding-bottom: 0;
}

.sticky-dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 56px;
}

/* ==================== _FlexDashboardLayout (FLEX CONTAINER) ==================== */

.dashboard-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px); /* Full height minus navbar */
    overflow: hidden;
}

.dashboard-header-fixed {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}


.dashboard-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0; /* No top padding - body starts right below header */
}

/* Ensure tabs in header don't have extra padding */
.dashboard-header-fixed .nav-tabs {
    margin-bottom: 0;
}

/* Client header styling inside fixed header */
.dashboard-header-fixed .client-header-compact {
    padding: 1rem;
    margin-bottom: 0;
}

/* Tabs and SearchBar on same row */
.tabs-searchbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 1rem;
}


.tabs-container {
    flex: 0 0 auto; /* Tabs take only the space they need */
}

.searchbar-container {
    flex: 1; /* SearchBar takes remaining space */
    max-width: 800px; /* Optional: limit max width */
}

/* Search field sizing */
.search-field {
    min-width: 80px;
    max-width: 100px;
}

.search-field input {
    font-size: 0.45rem;
    padding: 0.375rem 0.5rem;
}

/* Search bar layout */
.search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
}

/* Add vertical divider between tabs and search */
.search-section::before {
    content: "";
    width: 1px;
    height: 25px;
    margin-right: 1rem;
}


/* Remove white/blue borders from search inputs */
.search-field input {
    outline: none !important;
}

.search-field input:focus {
    outline: none !important;
}

/* Make all tables have borders by default */
table {
    border-collapse: collapse;
}

table th,
table td {
    padding: 6px;
    font-size: 0.75rem;
}

/* Make table headers more visible */
    table thead th {
        font-weight: bold !important;
        padding: 10px 8px !important;
        border-bottom: 2px solid #2ecc71 !important;
    }

/* Form labels - bold and more visible */
label, .form-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Sortable table headers */
table.table-sm thead th a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

/* Form inputs - smaller font */
input.form-control,
select.form-control,
textarea.form-control,
.form-select {
    font-size: 0.9rem;
}

.nav-tabs .nav-link {
    background-color: transparent;
    border-bottom: none;
    padding: 0.75rem 1.25rem;
    margin-right: 0.0rem;
    border-radius: 0;
}

/* =====================================================
   LIGHT MODE — HIGHER CONTRAST ADMIN (SLATE)
   ===================================================== */

[data-bs-theme="light"] {
    --bs-body-bg: #eef2f7;
    --bs-body-color: #111827;
    --bs-border-color: #cbd5e1;
    --surface-bg: #ffffff;
    --surface-raised: #f8fafc;
    --surface-muted: #e5e7eb;
    --accent-primary: #2563eb; /* blue-600 */
    --accent-primary-soft: #dbeafe; /* blue-100 */
    --accent-primary-border: #93c5fd;
}

    /* ---------------- NAVBAR ---------------- */

    [data-bs-theme="light"] .navbar {
        background-color: #ffffff !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }

    [data-bs-theme="light"] .navbar-brand,
    [data-bs-theme="light"] .nav-link {
        color: #111827 !important;
    }

/*.navbar-brand .tm {
    font-size: 0.8em;
    margin-left: -5px;
    font-weight: 700;
}*/

/* Navbar trademark refinement */
.navbar-brand .tm {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: -4px;
    opacity: 0.9;
    font-weight: 500;
}


    /* ---------------- PAGE / HEADERS ---------------- */

    [data-bs-theme="light"] .dashboard-header-fixed,
    [data-bs-theme="light"] .sticky-dashboard-header {
        background-color: var(--bs-body-bg);
        border-bottom: 1px solid #cbd5e1;
    }

    /* ---------------- TABS ---------------- */

    [data-bs-theme="light"] .nav-tabs {
        border-bottom: 2px solid #cbd5e1;
    }

        [data-bs-theme="light"] .nav-tabs .nav-link {
            background-color: var(--surface-bg);
            color: #374151;
            border: 1px solid #cbd5e1;
            border-bottom: none;
            font-weight: 500;
        }

            [data-bs-theme="light"] .nav-tabs .nav-link:hover {
                background-color: var(--surface-raised);
                color: #111827;
            }

            [data-bs-theme="light"] .nav-tabs .nav-link.active {
                background-color: var(--accent-primary-soft);
                color: #111827;
                border-color: var(--accent-primary-border);
                border-bottom: 3px solid var(--accent-primary);
            }

    /* ---------------- SEARCH / INPUTS ---------------- */

    [data-bs-theme="light"] input.form-control,
    [data-bs-theme="light"] select.form-control,
    [data-bs-theme="light"] textarea.form-control,
    [data-bs-theme="light"] .form-select {
        background-color: #ffffff;
        border: 1px solid #cbd5e1;
        color: #111827;
    }

        [data-bs-theme="light"] input.form-control:focus,
        [data-bs-theme="light"] select.form-control:focus,
        [data-bs-theme="light"] textarea.form-control:focus,
        [data-bs-theme="light"] .form-select:focus {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
        }

    /* ---------------- TABLES ---------------- */

    [data-bs-theme="light"] table {
        background-color: var(--surface-bg);
    }

        [data-bs-theme="light"] table th,
        [data-bs-theme="light"] table td {
            border: 1px solid #cbd5e1;
        }

        [data-bs-theme="light"] table thead th {
            background-color: #e2e8f0;
            color: #1f2937;
            font-weight: 700;
        }

        [data-bs-theme="light"] table tbody td {
            background-color: #ffffff;
        }

        /* ===========================
   TABLE TEXT – LIGHT MODE
   =========================== */

        [data-bs-theme="light"] table tbody td {
            color: #1f2937; /* slate-800 */
        }

            /* Slightly darker for primary identifiers */
            [data-bs-theme="light"] table tbody td strong,
            [data-bs-theme="light"] table tbody td .fw-semibold,
            [data-bs-theme="light"] table tbody td a {
                color: #111827; /* near-black */
            }

   /* ===========================
   PIPELINE – LIGHT MODE (HIGH CONTRAST)
   =========================== */

/* Column container */
[data-bs-theme="light"] .kanban-column {
    background-color: #f1f5f9;          /* slate-100 */
    border: 1px solid #cbd5e1;          /* slate-300 */
    border-radius: 8px;
}

/* Column header */
[data-bs-theme="light"] .kanban-column .card-header {
    background-color: #e2e8f0;          /* slate-200 */
    border-bottom: 1px solid #cbd5e1;
    font-weight: 600;
}

/* Column body */
[data-bs-theme="light"] .pipeline-column {
    background-color: transparent;
}

/* Individual pipeline cards */
[data-bs-theme="light"] .pipeline-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Card hover */
[data-bs-theme="light"] .pipeline-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* Pipeline column count badge */
[data-bs-theme="light"] .pipeline-count {
    background-color: #e2e8f0;
    color: #334155;
}

    /* ---------------- TEXT ---------------- */

    [data-bs-theme="light"] .text-body {
        color: #111827 !important;
    }

    [data-bs-theme="light"] label,
    [data-bs-theme="light"] .form-label {
        color: #1f2937;
        font-weight: 600;
    }

/* Light mode table row hover fix */
[data-bs-theme="light"] table tbody tr:hover {
    background-color: #f1f5f9;
}


/* =====================================================
   DARK MODE
   ===================================================== */

/* Customize ONLY dark mode */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #ffffff;
    --bs-border-color: #333;
}

[data-bs-theme="dark"] .btn:focus,
[data-bs-theme="dark"] .btn:active:focus,
[data-bs-theme="dark"] .btn-link.nav-link:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #212529, 0 0 0 0.25rem #258cfb;
}

[data-bs-theme="dark"] .tabs-search-container {
    background-color: #1a1a1a;
}

[data-bs-theme="dark"] .sticky-dashboard-header {
    background-color: #1a1a1a;
}

[data-bs-theme="dark"] .dashboard-header-fixed {
    background-color: var(--bs-body-bg);
    border-bottom: 2px solid #444;
}

[data-bs-theme="dark"] .search-section::before {
    background-color: #555;
}

[data-bs-theme="dark"] .search-field input {
    border: 1px solid #444 !important;
}

[data-bs-theme="dark"] .search-field input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

[data-bs-theme="dark"] .table-bordered {
    border: 1px solid #444;
}

[data-bs-theme="dark"] .table-bordered th,
[data-bs-theme="dark"] .table-bordered td {
    border: 1px solid #444;
}

[data-bs-theme="dark"] table th,
[data-bs-theme="dark"] table td {
    border: 1px solid #444;
}

[data-bs-theme="dark"] table thead th {
    background-color: #333;
    border: 1px solid #555;
    color: #ffffff;
}

[data-bs-theme="dark"] table tbody td {
    background-color: #1a1a1a;
}

[data-bs-theme="dark"] label,
[data-bs-theme="dark"] .form-label {
    color: #e0e0e0;
}

[data-bs-theme="dark"] input.form-control:focus,
[data-bs-theme="dark"] select.form-control:focus,
[data-bs-theme="dark"] textarea.form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2a2a2a !important;
    border-color: #0d6efd;
    color: #ffffff;
}

[data-bs-theme="dark"] table.table-sm thead th a:hover {
    background-color: #1e7e3d;
    text-decoration: none;
}

[data-bs-theme="dark"] input.form-control,
[data-bs-theme="dark"] select.form-control,
[data-bs-theme="dark"] textarea.form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2a2a2a !important;
    border: 1px solid #444;
    color: #ffffff;
}

[data-bs-theme="dark"] .navbar {
    background-color: #1a2332 !important;
    border-bottom: 1px solid #2d3748 !important;
}

[data-bs-theme="dark"] .text-body {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .nav-tabs {
    border-bottom: 1px solid #444;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #aaa;
    border: 1px solid #444;
    border-bottom: none;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #444;
    border-bottom: 2px solid #0d6efd;
}

/* Page section spacing */
.page-section {
    margin-bottom: 4.5rem;
}

/* Soft divider between major sections */
.page-section-divider {
    padding-bottom: 4.5rem;
    margin-bottom: 4.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}


/* =========================
   HERO SECTION
   ========================= */

.hero-section {
    position: relative;
    min-height: 75vh;
    background: linear-gradient( rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55) ), url('/images/hero-framework.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0;
    margin-bottom: 120px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cfd8dc;
    max-width: 600px;
}

/* Hide internal status search input */
#search1.search-input {
    display: none;
}

/* Status dropdown width fix */
#search1 {
    width: 80px;
}

#dashboardSearchBar .dropdown {
    width: 80px;
}

#dashboardSearchBar .dropdown-toggle {
    width: 80px;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    
}

.pipeline-card {
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

    .pipeline-card:active {
        cursor: grabbing;
    }

.pipeline-chosen {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.pipeline-drag {
    opacity: 0.9;
}

.pipeline-ghost {
    opacity: 0.25;
    border: 2px dashed rgba(0,0,0,0.2);
}
