﻿:root {
    --primairy-color: #FFFFFF;     /* page background */
    --secondary-color: #1E2B62;    /* primary UI / buttons / borders */
    --tertiary-color: #4B5581;     /* light navy (cards, subtle borders) */
    --quaternary-color: #6C7598;   /* lighter navy (muted UI) */
    --quinary-color: #F48C11;      /* accent (orange) */
    --text-color: #111;            /* body text */
    --colored-text: #F48C11;       /* accent text, links, badges */
    --highlight: #FDEDDB;          /* pale orange for focus/hover backgrounds */
    --site-bg: url("/static/assets/cs_bg.png");
}

html {
    overflow-x: hidden;
    min-height: 100%;
}

body {
    background-color: #fff;
    min-height: 100vh;
    width: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
        var(--site-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

.body-container {

}

.grid-module-container {
    padding-left: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(456px, 456px));
    gap: 16px;
}

.grid-module {
    width: 440px; /*1u*/
    height: 360px;
    margin: 5px; 
    padding: 12px;
    display: grid;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--secondary-color);
}

.grid-module-wide {
    width: 912px; /*2u+2gap*/
    height: 360px;
    margin: 5px; 
    padding: 12px;
    display: grid;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--secondary-color);
    grid-column: span 2;
}

.search-container {
    position: absolute;
    margin-left: 32px;
    width: 400px; /* Adjust based on your layout */
    max-width: 600px; /* Example width */

}

.client-search-bar {
    width: 90%;
    padding: 8px; 
    box-sizing: border-box;
    border-radius: 20px;
}

.search-results {
    position: absolute;
    margin-top: -2px;
    width: 100%;
    top: 100%; 
    left: 0;
    z-index: 1000; 
    background-color: var(--primairy-color);
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    max-height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
}

.search-result {
    padding: 8px 16px 8px 8px;
    border-top: 1px solid #ddd;
    color: var(--text-color);
}

.search-result:hover {
    background-color: var(--highlight);
}

.hidden {
    display: none;
}

/*button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666;
}*/
.selected-client-box {
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ddd;
    justify-self: right;
}


.parent {
    text-align: center;
  }
  .child {
    display: inline-block;
    vertical-align: middle;
    padding-left: 100px;
  }
.data-container{
    height: 250px;
    width: 420px;
}
.data-container-wide{
    height: 250px;
    width: 892px;
}
.table-container {
    height: 250px;
    width: 420px;
    overflow-y: auto;
    position: relative;
    font-size: 14px;
}
.body-table {
    width: 100%;
}
.body-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #ddd;
    border: 1px solid #bbb;
}
.body-table th{
    padding: 4px;
}
.body-table td {
    border-bottom: 1px solid #ccc;
}

.horizontal-96 {
    position: relative;
    display: flex;
    column-gap: 96px;  
}
.horizontal-72 {
    position: relative;
    display: flex;
    column-gap: 72px;  
}
.horizontal-48 {
    position: relative;
    display: flex;
    column-gap: 48px;  
}
.vertical-24 {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 24px;
    padding-block-end: 0;
}
.horizontal-24 {
    position: relative;
    display: flex;
    column-gap: 24px;  
}

.vertical-16 {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 16px;
    padding-block-end: 0;
}
.horizontal-16 {
    position: relative;
    display: flex;
    column-gap: 16px; 
}

.vertical-12 {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 12px;
    padding-block-end: 0;
}
.horizontal-12 {
    position: relative;
    display: flex;
    column-gap: 12px;   
}

.vertical-8 {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 8px;
    padding-block-end: 0;
}
.horizontal-8 {
    position: relative;
    display: flex;
    column-gap: 8px;
}

.vertical-4 {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 4px;
    padding-block-end: 0;
}
.horizontal-4 {
    position: relative;
    display: flex;
    column-gap: 4px;  
}

.justify-between {
    justify-content: space;
}


/* Background color classes */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-tertiary {
    background-color: var(--tertiary-color);
}

.bg-quaternary {
    background-color: var(--quaternary-color);
}

.bg-quinary {
    background-color: var(--quinary-color);
}

.bg-text-color {
    background-color: var(--text-color);
}

.bg-colored-text {
    background-color: var(--colored-text);
}

.bg-highlight {
    background-color: var(--highlight);
}

/* Border color classes */
.border-primary {
    border-color: var(--primary-color);
}

.border-secondary {
    border-color: var(--secondary-color);
}

.border-tertiary {
    border-color: var(--tertiary-color);
}

.border-quaternary {
    border-color: var(--quaternary-color);
}

.border-quinary {
    border-color: var(--quinary-color);
}

.border-text-color {
    border-color: var(--text-color);
}

.border-colored-text {
    border-color: var(--colored-text);
}

.border-highlight {
    border-color: var(--highlight);
}


.client-detail-popup {
    position: absolute;
    background-color: #fefefe;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000000;
    width: 440px; /*1u*/
    height: 360px;
    margin: 5px; 
    padding: 12px;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--secondary-color);
}
.info-content {
    padding: 10px;
}
.detail-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.detail-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 24px;
    padding: 8px;
}
.detail-grid-item {
    white-space: nowrap;
    width: fit-content;
}
.detail-proff-link {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.purple-bottom-border {
    border-bottom: 1px solid var(--colored-text);
}

/* --- Registration form layout (new) --- */
.form-page-center {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

.form-card {
    background: #fff;
    width: 100%;
    max-width: 840px;
    border: 1px solid var(--tertiary-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 24px 24px 28px 24px;
}

.form-card-wide {
    max-width: 1400px;
}

.form-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
}

.signup-columns {
    --signup-form-width: 560px;
    display: grid;
    grid-template-columns: minmax(320px, calc(1.45 * var(--signup-form-width))) minmax(320px, var(--signup-form-width));
    gap: 32px;
}

.signup-info {
    border-right: 1px solid var(--highlight);
    padding-right: 24px;
}

.signup-form {
    padding-left: 8px;
    max-width: var(--signup-form-width);
    width: 100%;
}

.signup-info p {
    color: #333;
    margin-bottom: 12px;
}

.signup-legal-footnote {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--highlight);
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.signup-legal-footnote-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.signup-legal-footnote-list {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.signup-legal-footnote-list li {
    margin-bottom: 8px;
}

.signup-legal-footnote-note {
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}

.form-stack {
    display: grid;
    row-gap: 16px;
}

.form-field { }

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-color);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--quinary-color);
    box-shadow: 0 0 0 3px var(--highlight);
}

.input-error {
    border-color: #dc2626 !important;
    background-color: #fff6f6;
}

.form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.form-error {
    margin-bottom: 6px;
    font-size: 13px;
    color: #b91c1c;
}

.form-actions {
    margin-top: 6px;
}

.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--secondary-color) !important;
    color: #FFF;
}

.btn-primary:hover {
    filter: brightness(1.15);
}

/* Flash messages */
.form-alerts {
    margin-bottom: 12px;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid transparent;
    margin-bottom: 8px;
}j

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.alert-danger {
    background: #fdecea;
    color: #842029;
    border-color: #f5c2c7;
}

.alert-info {
    background: #e7f3ff;
    color: #0c4a6e;
    border-color: #b6daff;
}

/* Utility */
.uppercase { text-transform: uppercase; }

.form-footnote {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.signup-foot-stat {
    margin-top: 8px;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}

.signup-foot-stat-note {
    font-size: 11px;
    color: #666;
    max-width: 620px;
    text-align: center;
    flex: 1;
}

.signup-foot-stat-label {
    margin-left: auto;
}

.signup-foot-stat-value {
    font-weight: 600;
    color: var(--secondary-color);
}

@media (max-width: 960px) {
    .form-card-wide {
        max-width: 640px;
    }

    .signup-columns {
        grid-template-columns: 1fr;
    }

    .signup-info {
        border-right: none;
        border-bottom: 1px solid var(--highlight);
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .signup-form {
        padding-left: 0;
        max-width: none;
    }
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: rgba(30, 43, 98, 0.92);
    border-bottom: 1px solid rgba(30, 43, 98, 0.92);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    backdrop-filter: blur(4px);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.navbar:hover {
    background: rgba(30, 43, 98, 0.98);
}

/* Navbar links */
.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease;
}

.nav-link:hover {
    background-color: rgba(244, 140, 17, 0.18);   /* orange accent hover */
}

/* Optional: make the logo in the navbar a consistent size */
.navbar .h-9 { height: 36px; } /* if your logo uses Tailwindâ€™s h-9 class */

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
    gap: 20px;
}

.navbar-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-logo {
    height: 42px;
    width: auto;
}

.navbar-logo-invert {
    filter: brightness(0) invert(1);
}

.nav-link-inline {
    padding: 6px 12px;
}

@media (max-width: 640px) {
    .navbar-content {
        flex-direction: column;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .navbar-branding {
        flex-direction: column;
        gap: 10px;
    }
}

.content-horizontal-4 {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Global link styling */
a {
    text-decoration: underline !important;
}

@media print { .navbar { background: #1E2B62 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

