﻿:root {
    --brand: #6F42C1; /* orchid */
    --brand-hover: #5B37B7;
    --tile-bg: #FFF8F0; /* try #FFFFFF if bg is very light */
    --tile-border: #E9E2FF;
}
html {
    font-size: 14px;
    scroll-behavior: smooth;
}



/* AiLouvre Tab Nav – modern pill style */
.nav-pills-ai .nav-link {
    border-radius: 2rem;
    padding: 0.55rem 1.25rem;
    font-weight: 500;
    color: #495057;
    background-color: #f2f2f2;
    border: 1px solid transparent;
    transition: all 0.25s ease-in-out;
}

    .nav-pills-ai .nav-link i {
        opacity: 0.75;
        transition: opacity 0.25s ease-in-out;
    }

    .nav-pills-ai .nav-link:hover {
        background-color: #e8e8e8;
        color: #0d6efd;
    }

    .nav-pills-ai .nav-link.active {
        background-color: #0d6efd;
        color: #fff;
        font-weight: 600;
        border-color: #0d6efd;
    }

        .nav-pills-ai .nav-link.active i {
            opacity: 1;
        }

.nav-pills-ai {
    background-color: #ffffff;
    padding: 0.6rem;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


.cta-tile {
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    cursor: pointer;
}

    .cta-tile:hover {
        background: #FFFFFF;
        border-color: #D9CEFF;
        box-shadow: 0 16px 36px rgba(111,66,193,.18);
        transform: translateY(-2px);
    }

.cta-accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), #9B72FF 60%, #FF7AD9);
}

.cta-icon {
    height: 48px;
    width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(111,66,193,.18), rgba(111,66,193,.06));
    color: var(--brand);
    font-size: 1.3rem;
}

.cta-tile .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

    .cta-tile .btn-primary:hover {
        background: var(--brand-hover);
        border-color: var(--brand-hover);
    }

.cta-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: transform .12s ease, opacity .12s ease;
}

.cta-tile:hover .cta-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Make entire tile act like the main button if you use data-href */
.cta-tile[data-href] {
    position: relative;
}

    .cta-tile[data-href]::after {
        content: "";
        position: absolute;
        inset: 0; /* hit area */
    }

.nav-pills .nav-link {
    border-radius: 999px;
}

.tab-authors.active {
    background: #5c6bc0;
}

.tab-characters.active {
    background: #26a69a;
}

.tab-personas.active {
    background: #26a69a;
}

.tab-quick.active {
    background: #ff8f00;
}

.tab-admin.active {
    background: #546e7a;
}

@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);
    }
}

.blurred-item {
    height: 16px;
    background: #e9ecef;
    filter: blur(3px);
    border-radius: 4px;
}

.ai-info-badge {
    position: relative;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e6e6e6);
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

    .ai-info-badge:hover {
        background: radial-gradient(circle at 30% 30%, #ffffff, #dcdcdc);
    }

/*.ai-info-badge {
    position: relative;
    margin-left: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 0 6px rgba(111, 93, 227, 0.25);*/ /* lilac glow */
    /*color: #6f5de3;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}*/


/*.ai-info-badge {
    margin-left: 6px;
    color: #999;
    font-size: 14px;
}

    .ai-info-badge:hover {
        color: #666;
    }*/

.editor-block {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e3e6ea;
}

.editor-label {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #f5f6f8;
    border-bottom: 1px solid #e3e6ea;
}

.editor-textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    border: none;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

.manuscript {
    background: #ffffff;
}

.transcript {
    background: #fbfbfd;
}

.transcript-block {
    border-left: 4px solid #6c9cff;
}

.manuscript-block {
    border-left: 4px solid #28a745;
}