/* ========== Body and Background ========== */
:root {
    scroll-padding-bottom: var(--vl-consent-body-padding-bottom, 0);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f4f4f9;
    padding-bottom: var(--vl-consent-body-padding-bottom, 0);
}

.bg-page {
    background-color: #f4f4f9 !important;
}

/* ========== Navbar Styles ========== */
.custom-navbar {
    background-color: #007bff; /* Blue background for navbar */
}

/* Ensure all nav-link items have the same vertical alignment */
.navbar-nav .nav-link,
.navbar-nav .nav-item > span.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Style the Logout button to resemble nav-links */
.navbar-nav .nav-item .logout-button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

/* Remove focus outline for Logout button */
.navbar-nav .nav-item .logout-button:focus {
    outline: none;
    box-shadow: none;
}

/* Hover effect to match nav-links */
.navbar-nav .nav-item .logout-button:hover {
    text-decoration: underline;
}

/* 
   Make all nav items white text on the blue background.
   Use !important to override any inline or conflicting styles.
*/
.custom-navbar .navbar-nav .nav-link,
.custom-navbar .navbar-nav .logout-button {
    color: #fff !important;
}
.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .logout-button:hover {
    color: #e2e6ea !important; /* Light gray on hover */
}

/*
 If you want the navbar toggler icon (hamburger) to be white:
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg'
    fill='%23fff' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.7)'
    stroke-linecap='round' stroke-miterlimit='10' stroke-width='2'
    d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
*/

/* ========== Form Styles ========== */
.form-group.row {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Uniform margin for better spacing */
}

.col-form-label {
    flex: 0 0 15%; /* Consistent width for all labels */
    text-align: right;
    padding-right: 15px;
}

/* ========== Upload Container Styles ========== */
.upload-container {
    background-color: #fff; /* White background for container */
    border-radius: 8px;     /* Rounded corners */
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Scoped button hover effect (legacy upload contexts only) */
.upload-container .btn.btn-primary:hover {
    background-color: #0056b3;
}

/* ========== Responsive Styles ========== */
@media (max-width: 576px) {
    .col-form-label,
    .form-control {
        flex: 1 0 100%;
        text-align: left;
    }
    .col-form-label {
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* ========== Edit Link Styles ========== */
#edit-all {
    color: #007bff; /* Default link color */
    text-decoration: none;
}
#edit-all:hover {
    color: #0056b3; /* Darker on hover */
    text-decoration: underline;
}

/* ========== Streak Circle CSS ========== */
/* Base circle styling (gray background, zero fill by default) */
.streak-circle {
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: #ddd; /* Gray unfilled portion */
    position: relative;
    vertical-align: middle;
    margin-left: 0.75rem; /* Some spacing from preceding text */
}

/* The fill portion (initially 0%) */
.streak-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 50%;
    background-color: #28a745; /* Green fill */
    width: 0%; /* no fill by default */
}

/* 1/3 fill */
.streak-circle.partial-1::after {
    width: 33%;
}

/* 2/3 fill */
.streak-circle.partial-2::after {
    width: 66%;
}

/* Full fill (3/3 or more) */
.streak-circle.full::after {
    width: 100%;
}


.vl-narrow-container {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.vl-wide-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vl-input-word {
    max-width: 32ch;
}

.vl-flag-flow,
.vl-flag-flow .form-control-sm,
.vl-flag-flow .badge {
    font-size: 0.75rem;
}

.vl-flag-flow .vl-flag-hint {
    font-size: 0.7rem;
}

.review-sentence-card {
    background-color: #f8fafc;
    border: 1px solid #e9ecef;
}

.card-top-offset {
    margin-top: -30px; /* Adjust this value to move the card higher or lower */
}

/* Mobile navbar rhythm and touch targets (for navbar-expand-lg) */
@media (max-width: 991.98px) {
    .navbar-collapse .nav-link {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .navbar-collapse .nav-item + .nav-item {
        margin-top: 0.125rem;
    }

    .navbar-collapse .lang-block {
        border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.125));
    }
}


.auth-or-divider hr {
    margin: 0;
    opacity: 0.2;
}

.auth-google-btn .fab {
    color: #4285F4;
}

.vl-media-overlay--thumb {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.5rem;
    overflow: hidden;
    isolation: isolate;
}

.vl-media-overlay--thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
    z-index: -1;
}

/* ========== Cookie consent card ========== */
.vl-consent-card {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 2rem);
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.25s ease-in-out;
}

.vl-consent-card.show {
    transform: translateY(0);
}


/* ========== public-home landing v2 ========== */
.public-home-hero-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 45%, #198cff 100%);
    color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.25rem rgba(13, 110, 253, 0.25);
}

.public-home-eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.public-home-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.public-home-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
}

.public-home-copy {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 65ch;
}

.public-home-btn-primary {
    color: #0a58ca;
}

.public-home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.public-home-checklist {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.public-home-checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.public-home-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.public-home-shot-wrap {
    background: #fff;
    border-radius: 1rem;
    padding: 0.2rem;
    box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.2);
    position: relative;
}

.public-home-shot-badge {
    position: absolute;
    top: -0.65rem;
    left: 1rem;
    background: #0d6efd;
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
}

.public-home-shot {
    width: 100%;
    height: auto;
    border-radius: 0.7rem;
    display: block;
}

.public-home-demo-card {
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 1rem;
}

.public-home-section-kicker {
    color: #0d6efd;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.public-home-muted-copy {
    color: #4f5b73;
}

.public-home-demo-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.public-home-demo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.public-home-steps {
    margin-bottom: 1rem;
}

.public-home-step-card {
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 1rem;
}

@media (max-width: 991.98px) {
    .public-home-demo-actions {
        width: 100%;
    }

    .public-home-demo-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
  #main-card.is-editing .review-edit-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bs-body-bg);
    padding-top: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  }
}


.table-words-manage td {
    word-break: break-word;
}
