
:root {
    --explain-primary: #1E3A5F;
    --explain-secondary: #5B8DB8;
    --explain-accent: #3FA7A3;
    --explain-background: #F5F8FB;
    --explain-text: #263238;
}


html {
  font-size: 14px;
}

@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;


}


.explainit-audience-container {
    max-width: 1600px;
    
}


.btn-outline-topic {
     color: var(--explain-primary);
    border:1px solid #808080;
}

.btn-check:checked + .btn-outline-topic {
   
    color: white;
    border: none;
}


.btn-explain-button {
    background-color:lightseagreen;
    color:#ffffff;
}

.btn-explain-button:hover {
    background-color: seagreen;
    color: #ffffff;
}



.chevron-icon {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
    color: #6c757d;
}

.collapsed-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}


/* =========================================================
   ExplainIt Results
   ========================================================= */

/* ExplainIt Results Palette */

.explainit-section-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-left: 0.75rem;
    border-left: 4px solid;
}

.explainit-summary-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.explainit-subsection-title {
    font-weight: 550;
    letter-spacing: -0.015em;
}

.explainit-info-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background-color: #fafafa;
    height: 100%;
}

.explainit-section-teal {
    background-color: #f3faf9;
    border-left: 4px solid #0f766e;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.explainit-summary {
    border-left: 4px solid #2563eb;
    background-color: #f5f8ff;
}

.explainit-title-blue {
    border-left-color: #2563eb;
}

.explainit-title-teal {
    border-left-color: #0f766e;
}

.explainit-title-green {
    border-left-color: #16a34a;
}

.explainit-title-purple {
    border-left-color: #7c3aed;
}

.explainit-title-orange {
    border-left-color: #d97706;
}

.explainit-title-slate {
    border-left-color: #475569;
}




/* ExplainIt Button */

.submit-button {
    width: 230px !important;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #495057;
    color: #343a40;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

    .submit-button:hover {
        background-color: #f8f9fa;
        border-color: #343a40;
        color: #212529;
    }

    .submit-button.is-loading {
        color: #0f766e;
        border-color: #0f766e;
        background-color: #ffffff;
    }



.explainit-pulse {
    display: inline-block;
    animation: explainitPulse 1.2s ease-in-out infinite;
}

@keyframes explainitPulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.submit-button:disabled {
    opacity: 0.85;
    cursor: progress;
}

    .submit-button:disabled::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient( 90deg, transparent, currentColor, transparent );
        box-shadow: 0 0 6px currentColor;
        animation: shimmer 1.5s infinite;
    }


@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}



.validation-toast {
    padding: 14px 18px;
    border-radius: 10px;
    width: 380px;
    background-color: #fff8e1;
    border-left: 5px solid #f59e0b;
}

.validation-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.validation-toast-icon {
    font-size: 1.35rem;
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.validation-toast-body {
    flex: 1;
    text-align: left;
}

.validation-toast-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 3px 0;
}

.validation-toast-text {
    font-size: 0.92rem;
    font-weight: 550;
    color: #57534e;
    margin: 0;
}



.activity-log-table {
    min-width: 1700px !important;
}

    .activity-log-table th,
    .activity-log-table td {
        vertical-align: middle;
    }



.activity-log-response {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}


.card-body-button {
    border-color: #0f766e;
    border:1px thin;
}

.btn-main-actions {
    color: #0f4c4c;
    background-color: #fff;
    border: 1px solid #0f4c4c;
    padding: 8px 16px;
    font-weight: 550;
    border-radius: 6px;
    cursor: pointer;
    /* Smooth transition for all property changes */
    transition: all 0.3s ease-in-out;
}

    .btn-main-actions:hover {
        color:#fff;
        background-color: #0f4c4c;
        border-color: #0f4c4c;
        /* Funky hover effect: lifts the button up slightly */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 76, 76, 0.2);
    }


.btn-main-actions-signup {
    color: #ffffff;
    background-color: #0f4c4c;
    border: 1px thin #0f4c4c;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    /* Smooth transition for all property changes */
    transition: all 0.3s ease-in-out;
}

    .btn-main-actions-signup:hover {
        color: #0f4c4c;
        background-color: transparent;
        border-color: #0f4c4c;
        /* Funky hover effect: lifts the button up slightly */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 76, 76, 0.2);
    }


    .btn-main-actions-login {
        color: #ffffff;
        background-color: #0f4c4c;
        border: 1px solid #0f4c4c;
        padding: 5px 10px;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        margin-left:10px;
        /* Smooth transition for all property changes */
        transition: all 0.3s ease-in-out;
    }

        .btn-main-actions-login:hover {
            color: #0f4c4c;
            background-color: transparent;
            border-color: #0f4c4c;
            /* Funky hover effect: lifts the button up slightly */
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(15, 76, 76, 0.2);
        }



/* Makes the cursor look clickable over the card */
.cursor-pointer {
    cursor: pointer;
}

/* Highlights the card border when its hidden radio button is checked */
.btn-check:checked + .card {
    border-color: #0d6efd !important; /* Bootstrap primary blue */
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.15) !important;
    background-color: #f8fbff; /* Optional subtle background tint */
}


.login-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.06);
    border-radius: 999px;
}


.accountupdate-toast-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: darkseagreen;
    margin: 0 0 3px 0;
}


.history-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



.explain-this-button {
    position: absolute;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background-color: #3f7f78;
    border: 1px solid #3f7f78;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .explain-this-button:hover {
        background-color: #356d67;
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
        transform: translateY(-1px);
    }

    .explain-this-button i {
        color: #ffffff;
        font-size: 0.95rem;
    }



.explain-this-result {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
}

    .explain-this-result .card-body {
        padding: 1.5rem;
    }

.explain-this-selected {
    padding: 0.9rem 1rem;
    background-color: #f5f7f7;
    border-left: 4px solid #3f7f78;
    border-radius: 6px;
}

.explain-this-label {
    color: #3f7f78;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.explain-this-quote {
    color: #495057;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 700;
}

.explain-this-title {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.explain-this-explanation {
    line-height: 1.65;
    margin-bottom: 1rem;
}

.explain-this-keypoints {
    padding-top: 0.25rem;
}

    .explain-this-keypoints li {
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }


.questions-to-ask-list {
    border-left: 4px solid #d58a3a;
    padding-left: 1.25rem;
}

.questions-to-ask-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0;
}

    .questions-to-ask-item + .questions-to-ask-item {
        border-top: 1px solid #e9ecef;
    }

.questions-to-ask-number {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background-color: #f8eee3;
    color: #a86224;
    font-size: 0.8rem;
    font-weight: 700;
}

.questions-to-ask-item p {
    padding-top: 0.15rem;
    color: #5a6169;
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}



.explainit-landing {
    padding-top: .5rem;
    padding-bottom: 2rem;
}

.explainit-hero {
    max-width: 760px;
    margin: 0 auto;
}

.explainit-hero-icon {
    font-size: 2rem;
    color: #3f7f78;
}

.explainit-hero-description {
    max-width: 620px;
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-card {
    max-width: 460px;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #e4e8e8;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.auth-card-icon {
    color: #3f7f78;
    font-size: 1.8rem;
}

.auth-card-wide {
    max-width: 620px;
}


.btn-landing-primary {
    background-color: #3f7f78;
    border: 1px solid #3f7f78;
    color: #fff;
}

    .btn-landing-primary:hover,
    .btn-landing-primary:focus {
        background-color: #356d67;
        border-color: #356d67;
        color: #fff;
    }



.btn-login {
    background-color: #3f7f78;
    border: 1px solid #3f7f78;
    color: #fff;
}

    .btn-login:hover,
    .btn-login:focus {
        background-color: #356d67;
        border-color: #356d67;
        color: #fff;
    }

    .btn-login:active {
        background-color: #2f625d;
        border-color: #2f625d;
        color: #fff;
    }


.explainit-use-cases {
    max-width: 1700px;
    margin: 2rem auto 0;
    padding: 2rem 1rem;
    border-top: 1px solid #e9ecef;
}

.explainit-section-description {
    max-width: 680px;
    line-height: 1.7;
}

.use-case-card {
    padding: 1.75rem;
    background-color: #fff;
    border: 1px solid #e4e8e8;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

    .use-case-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    }

.use-case-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background-color: #eef5f4;
    color: #3f7f78;
    font-size: 1.25rem;
}

.use-case-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.use-case-card p {
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.65;
}



.original-input-panel {
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3f7f78;
    border-radius: 10px;
}

.original-input-heading {
    margin-bottom: 0.75rem;
    color: #3f7f78;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.original-input-text {
    color: #343a40;
    line-height: 1.7;
    font-size: 1.1rem;
}



.btn-clarify.is-loading {
    color: #5f6f82;
    background-color: #ffffff;
    border: 1px solid mediumvioletred;
}

@keyframes clarifyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 21, 133, 0.55);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(199, 21, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(199, 21, 133, 0);
    }
}

.btn-clarify.clarify-pulse {
    animation: clarifyPulse 1.2s ease-out infinite;
}



.btn-questions.is-loading-questions {
    color: #4682B4;
    background-color: #ffffff;
    border: 1px solid #4682B4;
}

@keyframes questionsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(70, 130, 180, 0.55);
    }

    70% {
        box-shadow: 0 0 0 0 rgba(70, 130, 180, 0);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(70, 130, 180, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(70, 130, 180, 0);
    }
}

.btn-questions.questions-pulse {
    animation: questionsPulse 1.2s ease-out infinite;
}



.history-pagination {
    margin-top: 1.5rem;
    gap: 4px;
}

    .history-pagination .page-link {
        min-width: 38px;
        text-align: center;
        color: #495057;
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 7px !important;
        transition: all 0.2s ease;
    }

        .history-pagination .page-link:hover {
            color: #3f7f78;
            background-color: #f5f9f8;
            border-color: #3f7f78;
        }

    .history-pagination .page-item.active .page-link {
        color: #ffffff;
        background-color: #3f7f78;
        border-color: #3f7f78;
    }

    .history-pagination .page-item.disabled .page-link {
        color: #adb5bd;
        background-color: #f8f9fa;
        border-color: #e9ecef;
    }