/* --- Dark-theme base ------------------------------------------------ */
body {
    background:#212121 !important;
    color:#e0e0e0 !important;
    font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
a {
    color:#b7b5b5 !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;
}

.trash-icon {
    cursor: pointer;
    opacity: 0.8;
}

.trash-icon:hover {
    opacity: 1;
}

.copy-icon {
    cursor: pointer;
    opacity: 0.8;
}

.copy-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: #2e2e2e;
    color: #fff;
    border: 2px solid #eeba2c;
    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; }
.modal .form-label { color:#ffffff !important; }

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

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

/* Input field */
.app-modal-body input[type="text"]{
    width:100%;
    border:2px solid #eeba2c;
    padding:.5rem;
    border-radius:4px;
    background:#444;
    color:#fff;
}
.app-modal-body input[type="text"]::placeholder{color:#888}
.app-modal-body input[type="text"]:focus{
    background:#555;
    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)}}



/* 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: #ffbb01;
    border-color: #ffbb01 #ffbb01 #212121;
    color: #000;
}

/* Specific styling for the Add Resource tabs */
#resourceTab .nav-link {
    color: #ffffff;
}
#videoTab .nav-link {
    color: #ffffff;
}

/* Ensure nav tabs remain symmetrical while wrapping */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.nav-tabs .nav-item {
    flex: 1 0 25%;
    text-align: center;
    display: flex;
}
.nav-tabs .nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}
@media (max-width: 768px) {
    .nav-tabs .nav-item {
        flex-basis: 50%;
    }
}
@media (max-width: 480px) {
    .nav-tabs .nav-item {
        flex-basis: 100%;
    }
}

/* --- Profile dropdown --------------------------------------------- */
.profile-dropdown .dropdown-menu {
    min-width: 13rem;
}
.profile-dropdown .dropdown-header {
    text-transform: none;
    letter-spacing: normal;
}
.profile-dropdown .dropdown-user-img {
    height: 2.5rem;
    width: 2.5rem;
    margin-right: 1rem;
    border-radius: 100%;
}
.profile-dropdown .dropdown-user-details-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 10rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-dropdown .dropdown-user-details-email {
    font-size: 0.75rem;
    color: #000;
    max-width: 10rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown .dropdown-user-details-name,
.profile-dropdown .dropdown-item {
    color: #000;
}

.profile-dropdown .dropdown-item:hover,
.profile-dropdown .dropdown-item:focus {
    background-color: #e0e0e0;
}

/* --- Modal dark style -------------------------------------------- */
.modal-dialog {
    margin-top: 25vh;
}
.modal-content {
    background-color: #2e2e2e;
    color: #fff;
    border: 2px solid #eeba2c;
}
.modal-header,
.modal-footer {
    border-color: #eeba2c;
}
.modal .btn-primary {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}
.modal .btn-primary:hover {
    background-color: #000;
    border-color: #000;
    color: #ffc107;
}
.modal .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}

