/* Brand Colors */
:root {
    --asfound-mint: #AEE8D8;
    --asfound-mint-dark: #86CDBE;
    --asfound-charcoal: #1A1A1A;
    --asfound-grey: #F7F7F7;
}

/* Typography */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--asfound-charcoal);
}

/* Card style (matches reType windows) */
.as-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    transition: background-color 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
    cursor: pointer;
}

.as-card:hover {
    background: #fafafa;
    border-color: #d8d8d8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.doc-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    transition: background-color 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
    cursor: default;
}

.doc-card:hover {
    background: #fafafa;
    border-color: #d8d8d8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.as-table {
    background: white;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    transition: background-color 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
    cursor: pointer;
    overflow: hidden;
}

.as-table:hover {
    background: #fafafa;
    border-color: #d8d8d8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Override Bootstrap table-light to use the same tint */
.table-light {
    --bs-table-bg: #fafafa;
    background-color: #fafafa !important;
}

/* Bootstrap popovers: AsFound mint theme */
.popover {
    --bs-popover-bg: var(--asfound-mint);
    --bs-popover-border-color: var(--asfound-mint);
    --bs-popover-header-bg: var(--asfound-mint);
    --bs-popover-body-color: #1f2d2a;
    --bs-popover-header-color: #1f2d2a;
}


/* Primary button (mint) */
.btn-asfound {
    background-color: var(--asfound-mint);
    border: none;
    color: var(--asfound-charcoal);
    font-weight: 600;
    border-radius: 10px;
}

.btn-asfound:hover {
    background-color: var(--asfound-mint-dark);
    border: none;
}

/* Override Bootswatch primary buttons to match brand mint */
.btn-primary {
    background-color: var(--asfound-mint);
    border: none;
    color: var(--asfound-charcoal);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
    background-color: var(--asfound-mint-dark);
    border: none;
    color: var(--asfound-charcoal);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--asfound-mint);
    border: none;
    color: var(--asfound-charcoal);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #AEE8D8;
    color: var(--asfound-charcoal);
}

/* Outline primary buttons (used on dashboard cards) */
.btn-outline-primary {
    background-color: transparent;
    border-color:#e3e3e3;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #AEE8D8;
    border-color: #AEE8D8;
    color: #000;
}

/* Icon cards (Certificate Validator, ISO Copilot) */
.as-tool-card {
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 20px;
    background: white;
    transition: all 0.2s ease;
}

.as-tool-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Upload box (Drift Analyzer) */
.as-upload-box {
    background: var(--asfound-grey);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px dashed #d0d0d0;
}

/* Header branding */
.asfound-title {
    font-size: 34px;
    font-weight: 700;
    color: #fafafa;
}

/* Subtitles */
.asfound-sub {
    color: #555;
    font-size: 18px;
}

/* Small brand symbol in cards */
.as-logo-symbol {
    display: block;
    margin: 0 auto 12px auto;
}

/* Highlight/transition for updated key text */
#asfound_key {
    transition: background-color 400ms ease-in-out;
}

.key-highlight {
    background-color: #AEE8D8;
    border-radius: 0;
}

.dashboard-video-modal {
    border: 1px solid #e6e6e6 !important;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.14) !important;
}

.dashboard-video-modal .modal-header {
    border-top: 4px solid var(--asfound-mint);
    border-radius: 18px 18px 0 0;
}

.dashboard-video-modal__frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #f7f7f7;
}

.dashboard-video-modal__frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.radio-asfound {
  border-color: var(--asfound-mint-dark);
}

@media (max-width: 640px) {
    .dashboard-video-modal {
        border-radius: 14px;
    }

    .dashboard-video-modal .modal-header {
        border-radius: 14px 14px 0 0;
    }

    .dashboard-video-modal .modal-title {
        font-size: 1rem;
    }

    .dashboard-video-modal .modal-body {
        padding-inline: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .dashboard-video-modal__frame-wrap {
        border-radius: 10px;
    }
}

.radio-asfound:checked {
  background-color: var(--asfound-mint-dark);
  border-color: var(--asfound-mint-dark);
  background-image: radial-gradient(circle, #fff 28%, transparent 32%);
}

.radio-asfound:focus {
  border-color: var(--asfound-mint-dark);
  box-shadow: 0 0 0 0.25rem rgba(174, 232, 216, 0.25);
}

/* Public landing/login page */
.public-home {
    min-height: 100svh;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 3vw, 42px) clamp(22px, 5vw, 72px) 24px;
}

.public-home__hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.48fr) minmax(520px, 1fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
}

.public-home__copy {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.public-home__logo {
    width: 120px;
    height: auto;
    display: block;
}

.public-home__message {
    margin-top: clamp(72px, 12vh, 138px);
}

.public-home__headline {
    color: #242832;
    font-size: clamp(2rem, 2.8vw, 3.1rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.public-home__subheading {
    color: #5d6677;
    font-size: clamp(1.04rem, 1.35vw, 1.15rem);
    line-height: 1.55;
    font-weight: 400;
    margin: clamp(22px, 2.6vw, 34px) 0 0;
}

.public-home__login-card {
    width: min(100%, 370px);
    margin-top: clamp(30px, 5vh, 66px);
    background: #fff;
    border: 1px solid #e9edf0;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(24, 31, 43, 0.07);
    padding: 20px;
    display: grid;
    gap: 18px;
}

.public-home__auth-button {
    min-height: 62px;
    border-radius: 10px;
    border-color: #dfe5ea;
    color: #344054;
    background: #fff;
    font-size: 1.05rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 22px;
    white-space: nowrap;
}

.public-home__auth-button:hover,
.public-home__auth-button:focus {
    color: var(--asfound-charcoal);
    border-color: var(--asfound-mint);
}

.public-home__demo-frame {
    background: #F1F8F5;
    border: 1px solid #dbe8e3;
    border-radius: 20px;
    box-shadow: 0 24px 56px rgba(25, 56, 47, 0.12);
    padding: clamp(42px, 5.3vw, 78px) clamp(26px, 3.6vw, 58px);
    width: 100%;
    min-height: min(72vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-reel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
    transform-origin: center center;
     display: block;
}

.public-home__footer {
    color: #697386;
    font-size: 0.95rem;
    text-align: center;
    padding-top: 24px;
}

@media (max-width: 1100px) {
    .public-home__hero {
        grid-template-columns: 1fr;
        gap: 44px;
        align-items: start;
    }

    .public-home__copy {
        align-self: auto;
    }

    .public-home__message {
        margin-top: 50px;
    }

    .public-home__demo-frame {
        min-height: auto;
        aspect-ratio: 16 / 9;
        padding: clamp(20px, 5vw, 36px);
    }
}

@media (max-width: 640px) {
    .public-home {
        padding: 24px 18px 20px;
    }

    .public-home__logo {
        width: 148px;
    }

    .public-home__message {
        margin-top: 52px;
    }

    .public-home__headline {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .public-home__subheading {
        font-size: 1.03rem;
    }

    .public-home__subheading br {
        display: none;
    }

    .public-home__login-card {
        width: 100%;
        margin-top: 36px;
        padding: 18px;
        gap: 14px;
    }

    .public-home__auth-button {
        min-height: 58px;
        font-size: 1rem;
        gap: 14px;
        padding: 0 18px;
    }

    .public-home__demo-frame {
        border-radius: 16px;
    }

    .public-home__footer {
        font-size: 0.88rem;
    }
}
