html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-select:focus {
    border-color: #5bc0de;
    box-shadow: 0 0 0 0.2rem rgba(91, 192, 222, 0.25);
}

.mega-menu .dropdown-header{
  font-size:.75rem; text-transform:uppercase; letter-spacing:.06em;
}

.navbar .dropdown-menu.mega-menu {
    z-index: 2000;
}
.chat-messages {
    scroll-behavior: smooth;
}
.message-bubble {
    white-space: pre-wrap;
}

/* Add right-side breathing room + guard against hugging viewport */
@media (min-width: 992px) {
    .navbar .dropdown-menu.mega-menu {
        /* width can stay whatever you have; adjust if you like */
        width: 860px;
        /* keep at least 20px gap from viewport edges */
        max-width: calc(100vw - 40px);
        margin-inline: 20px;
        /* more interior space on the right so the last column isn't tight */
        padding-right: 1.5rem; /* increase as needed (1.75rem, 2rem, etc.) */
        /* keep navbar visible if content gets tall */
        max-height: 70vh;
        overflow: auto;
    }
}





.token-pill {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}



/* Rotate chevron when collapse is open */
.rotate-icon {
    transition: transform 0.3s ease;
}

[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}

/* Subtle CTA highlight */

.avatar-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/*.banner-fallback {
    height: 120px;
    background: linear-gradient(135deg, #6c63ff, #4cafef);
}*/
.banner-img, .banner-fallback {
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, #6c63ff, #4cafef);
}

.avatar-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-overlay {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: -40px; /* pulls avatar halfway into banner */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: 600;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    background: #6c63ff; /* default, replaced by JS color */
}

.avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.avatar-fallback {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background: #6c63ff; /* default */
}

.cta-card {
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease;
}

    /*.cta-card:hover {*/
        /*box-shadow: 0 0 0.75rem rgba(25, 135, 84, 0.4);*/
        /* Bootstrap Green - balanced */
        /*box-shadow: 0 0 0.75rem rgba(25, 135, 84, 0.4);*/
        /* Gold / Creativity spark */
        /*box-shadow: 0 0 0.85rem rgba(255, 193, 7, 0.55);*/
        /* Bootstrap Blue - calm / professional */
        /*box-shadow: 0 0 0.75rem rgba(13, 110, 253, 0.45);*/
        /* Purple - creative / fantasy */
        /*box-shadow: 0 0 1rem rgba(111, 66, 193, 0.55);*/
        /* Red - bold / urgent */
        /*box-shadow: 0 0 0.85rem rgba(220, 53, 69, 0.5);*/
        /* Teal - modern / fresh */
        /*box-shadow: 0 0 0.9rem rgba(32, 201, 151, 0.5);*/
        /* Soft neutral (gray highlight) */
        /*box-shadow: 0 0 0.6rem rgba(108, 117, 125, 0.35);*/
    /*}*/


/* Green CTA */
.cta-green {
    border-color: #198754 !important;
}

    .cta-green .card-header {
        background: rgba(25, 135, 84, 0.1);
    }

        .cta-green .card-header strong,
        .cta-green .card-header i,
        .cta-green .badge {
            color: #198754 !important;
        }

/* Gold CTA */
.cta-gold {
    border-color: #ffc107 !important;
}

    .cta-gold .card-header {
        background: rgba(255, 193, 7, 0.1);
    }

        .cta-gold .card-header strong,
        .cta-gold .card-header i,
        .cta-gold .badge {
            color: #ffc107 !important;
        }

/* Purple CTA */
.cta-purple {
    border-color: #6f42c1 !important;
}

    .cta-purple .card-header {
        background: rgba(111, 66, 193, 0.1);
    }

        .cta-purple .card-header strong,
        .cta-purple .card-header i,
        .cta-purple .badge {
            color: #6f42c1 !important;
        }


.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

    .btn-purple:hover {
        background-color: #59359a;
        border-color: #59359a;
    }


/*.cta-card {
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease;
}

    .cta-card:hover {
        box-shadow: 0 0 0.75rem rgba(255, 193, 7, 0.5);*/ /* Bootstrap warning gold glow */
    /*}*/





.collapse.show + .rotate-icon,
[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}

.navbar .btn-primary {
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Subtle lift + consistent control height */

@keyframes flash-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(25,135,84,.45);
        background-color: #d1e7dd;
    }

    100% {
        box-shadow: 0 0 0 14px rgba(25,135,84,0);
        background-color: transparent;
    }
}

.flash-once {
    animation: flash-ring 900ms ease-out forwards;
    border-radius: .5rem;
}


.card-compact .card-body {
    padding: 1rem 1.25rem;
}

.control-xl {
    height: 46px;
}
/* keep selects and button same height */
.btn-xl {
    height: 46px;
    line-height: 1.1;
}

.col-fill {
    display: flex;
    flex-direction: column;
}

.push-bottom {
    margin-top: auto;
}
/* pushes the button down */
.subcard {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .75rem .9rem;
}

    .subcard h6 {
        font-size: .9rem;
        margin: 0 0 .25rem;
    }

    .subcard .meta {
        font-size: .85rem;
        margin: 0;
    }

.meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1rem;
}


@media (max-width: 768px) {
    .meta-row {
        grid-template-columns: 1fr;
    }
}

/* Force team & agent dropdowns to line up */
#teamSelect, #agentSelect {
    height: calc(2.875rem + 2px); /* matches .form-select.control-xl */
}

.input-group {
    display: flex;
    align-items: stretch; /* ensures icon + select stay flush */
}

/* --- only affects this card --- */
.coauthoring-card .form-label {
    margin-bottom: .25rem; /* normalize label spacing on both columns */
}



.coauthoring-card .input-group-text {
    display: flex; /* vertically center the icon */
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.coauthoring-card .input-group-text,
.coauthoring-card .form-select.control-xl {
    height: 46px; /* exact match */
    box-sizing: border-box;
}

.coauthoring-card .input-group-text {
    display: flex;
    align-items: center; /* vertical centering of the icon */
    padding-top: 0;
    padding-bottom: 0;
}
.coauthoring-card .agent-group {
    transform: translateY(-1px);
}

/* ensure the two columns align on the same baseline */
.coauthoring-card .row {
    align-items: start; /* avoid weird 'stretch' math with mixed content */
}


/* Subtle lift + consistent control height */
/* Subtle lift + consistent control height */
/* Subtle lift + consistent control height */





.btn-success:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #28a745, #218838);
}

.token-badge.wallet-badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInToken 0.6s ease;
}

    .token-badge.wallet-badge:hover {
        transform: scale(1.05);
    }

.bg-rich-gold {
    background-color: #fcd34d;
    color: #1f2937;
    border: 1px solid #d97706;
}

.bg-silver {
    background-color: #e5e7eb;
    color: #111827;
    border: 1px solid #9ca3af;
}

@keyframes fadeInToken {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}