/* --- Dark-theme base ------------------------------------------------ */
body {
    background:#212121 !important;
    color:#e0e0e0 !important;
    font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
a {
    color:#005BBB !important;
    text-decoration:none !important;
}
a:hover {
    color:#000000 !important;
    text-decoration:none !important;
}

/* --- Layout spacing ------------------------------------------------- */
main.container {
    padding-top:2rem !important;
    padding-bottom:2rem !important;
}

/* --- Navbar --------------------------------------------------------- */
.navbar {
    background:#171717 !important;
}
.navbar-brand {
    color:#fff !important;
    font-weight:600 !important;
}
.navbar .btn-outline-light {
    --bs-btn-color:#e0e0e0 !important;
    --bs-btn-border-color:#e0e0e0 !important;
    --bs-btn-hover-bg:#e0e0e0 !important;
    --bs-btn-hover-color:#121212 !important;
    --bs-btn-hover-border-color:#e0e0e0 !important;
}

/* --- Footer --------------------------------------------------------- */
footer {
    border-top:1px solid #333 !important;
    padding-top:1rem !important;
    
}

/* --- Split pane ----------------------------------------------------- */
.split-pane {
    flex:1 1 50%;
    overflow:auto;
    padding:10px;       /* 3-pixel “gutter” on all sides */
    box-sizing:border-box;
}

/* --- New button styles ---------------------------------------------- */
/* Base .btn styling (optional shared styling) */
.btn {
    display: inline-block;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border-radius: .375rem;
    user-select: none;
}

/* Primary button Dark Background */
.btn-primary {
    color: #ffffff !important;
    background-color: transparent !important;
    border: 1px solid #ffffff !important;
}
.btn-primary:hover {
    background-color: #e0aa01 !important;
    border-color: #e0aa01 !important;
    color: #000000 !important;
}

/* Secondary button */
.btn-secondary {
    color: #e0e0e0 !important;
    background-color: #444 !important;
    border: 1px solid #555 !important;
}
.btn-secondary:hover {
    background-color: #555 !important;
    border-color: #666 !important;
    color: #ffffff !important;
}

/* Danger button */
.btn-danger {
    color: #ffffff !important;
    background-color: #f66 !important;
    border: 1px solid #f66 !important;
}
.btn-danger:hover {
    background-color: #ff8a8a !important;
    border-color: #ff8a8a !important;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────
   Buttons for LIGHT backgrounds
   (same palette, just inverted for contrast)
   ───────────────────────────────────────────── */

/* Primary button – light bg */
.btn-primary-light {
    color: #000000 !important;
    background-color: #e0aa01 !important;
    border: 1px solid #000000 !important;
}
.btn-primary-light:hover {
    background-color: #e0aa01 !important;
    border-color: #e0aa01 !important;
    color: #ffffff !important;
}

/* Secondary button – light bg */
.btn-secondary-light {
    color: #333333 !important;
    background-color: #f2f2f2 !important;
    border: 1px solid #cccccc !important;
}
.btn-secondary-light:hover {
    background-color: #e6e6e6 !important;
    border-color: #bbbbbb !important;
    color: #000000 !important;
}

/* Danger button – light bg */
.btn-danger-light {
    color: #8b0000 !important;
    background-color: #ffe5e5 !important;
    border: 1px solid #ff8a8a !important;
}
.btn-danger-light:hover {
    background-color: #ff8a8a !important;
    border-color: #ff8a8a !important;
    color: #ffffff !important;
}


.text-muted {
    color: #c0bebd !important; /* Replace this with any color from your palette */
}
/* ===== Edit-icon style ===== */
.edit-icon {                   /* 1) small inline icon */
    cursor: pointer;           /* 2) show pointer */
    opacity: 0.8;              /* 3) subtle */
}
.edit-icon:hover {             /* 4) on hover */
    opacity: 1;
}

/* ===== Edit-icon style ===== */
.edit-icon {
    cursor: pointer; 
    opacity: 0.8;
}
.edit-icon:hover {
    opacity: 1;
}
/* ===== Modal overlay ===== */
.app-modal {
    position: fixed;
    inset: 0;
    display: none;                 /* hidden until .show is added      */
    align-items: center;
    justify-content: center;
    z-index: 1050;
    background: rgba(0,0,0,0.6);   /* final backdrop colour            */
    animation: fadeBg 0.25s ease;  /* backdrop fades in                */
}
.app-modal.show {
    display: flex;
}

/* ===== Modal panel ===== */
.app-modal-dialog {
    background: #ffffff;
    border: 2px solid #e0aa01;
    border-radius: 8px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;

    /* zoom-in / pop-in effect */
    animation: zoomIn 0.25s ease;
}

/* Field Labels */
.form-label { color:#000 !important; }

/* Header */
.app-modal-header{
    background:#e0aa01;
    padding:.75rem 1rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.app-modal-header h5{
    font-size:1.1rem;
    color:#222;
    margin:0;
}
.close-modal{
    background:none;
    border:none;
    font-size:1.25rem;
    line-height:1;
    cursor:pointer;
    color:#222;
}

/* Body */
.app-modal-body{padding:1rem}

/* Input field */
.app-modal-body input[type="text"]{
    width:100%;
    border:2px solid #e0aa01;
    padding:.5rem;
    border-radius:4px;
    background:#f5f5f5;
    color:#000;
}
.app-modal-body input[type="text"]::placeholder{color:#888}
.app-modal-body input[type="text"]:focus{
    background:#fff;
    outline:none;
}
/* ===== Animations ===== */
@keyframes fadeBg{from{background:rgba(0,0,0,0)}to{background:rgba(0,0,0,0.6)}}
@keyframes zoomIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}

/* Bottom pane smooth-transition */
#bottomPane{transition:height .4s ease-in-out;}

/* Arrow toggle */
.bottom-pane-toggle{
    position:absolute;
     top:20px !important; 
    left:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    padding:5px;
}

.bottom-pane-toggle span{
    font-size:1.6rem;
    line-height:.1;
    margin:0;
    cursor:pointer;
}
.conversation-btn {
    width: 45px !important;
    height: 45px !important;
    cursor: pointer;
}
/* force new hover colours for Bootstrap-style links */
.nav-link:hover {
    color: #000000 !important;         /* text colour */
    background-color: #e0aa01 !important; /* link background */
}

/* THE BELOW CAN BE USED TO ADJUST TEH SIZE OF THE FOOTER --- YOU IF YOU CHOOSE
TO YOU WILL NEED ANOTHER VERSION FOR OTHER CLASSES. THE ONE BELOE IS FOR "MANAGE-AGENTS" PAGE
main.manage-agents-container-fluid {
    height: calc(100vh - 150px - 40px);    adjust numbers as needed */

/* Nav tab styling, if used */
.nav-tabs .nav-link {
    border: 1px solid #444;
    border-bottom: none;
    background: #1a1a1a;
    color: #e0e0e0;
}
.nav-tabs .nav-link.active {
    background: #212121;
    border-color: #ffbb01 #ffbb01 #212121;
    color: #ffbb01;
}




/* --- Undeposited Funds Date Range Form Styles (Side-by-Side Selectors, Stacked Buttons, 10px Padding Between Date Selectors and Buttons) --- */
.form-row {
    display: flex;
    flex-direction: row;
    gap: 10px;              /* Space between columns */
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* From Date and To Date columns */
.form-row > .col-sm-2 {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 120px;
    max-width: 220px;
}

/* Label styling */
.form-row label {
    font-weight: 500;
}

/* Date input styling */
.form-row input[type="date"] {
    width: 100%;
}

/* Buttons row below selectors */
.btn-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;  /* 10px padding between date selectors and buttons */
}

/* Buttons full width inside their column */
.btn-row .col-sm-2 {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 120px;
    max-width: 220px;
}

.btn-row .btn {
    width: 100%;
    text-align: center;
    margin: 0;
}

/* Hide unused default .col-auto spacing */
.form-row .col-auto {
    display: none;
}

/* Responsive: Stack columns vertically on small screens */
@media (max-width: 600px) {
    .form-row,
    .btn-row {
        flex-direction: column;
        gap: 10px;
    }
    .form-row > .col-sm-2,
    .btn-row .col-sm-2 {
        max-width: 100%;
        min-width: 0;
    }
}
