@font-face {
    font-family: "adineuePRO";
    src: url("../fonts/adineuePRO-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "adineuePRO";
    src: url("../fonts/adineuePRO-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "adineuePRO";
    src: url("../fonts/adineuePRO-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

.tool-auth-page,
.tool-dashboard-page {
    --tool-accent: #f51b23;
    --tool-accent-strong: #c9131a;
    --tool-accent-soft: rgba(245, 27, 35, 0.12);
    --tool-button-orange: #ff5a2a;
    --tool-ink: #192733;
    --tool-ink-2: #1a1c20;
    --tool-surface: #ffffff;
    --tool-surface-alt: #f7f4ef;
    --tool-line: #e9e2d8;
    --tool-text: #1d2129;
    --tool-muted: #6b7280;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tool-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 27, 35, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(15, 16, 18, 0.08), transparent 28%),
        linear-gradient(180deg, #fcfaf7 0%, #f4efe9 100%);
}

.tool-auth-shell {
    min-height: 100vh;
}

.tool-brand-panel h1,
.tool-topbar h1,
.tool-auth-card h4,
.tool-hero h2,
.tool-section-header h3,
.tool-brand-title {
    font-family: "adineuePRO", "Inter", system-ui, sans-serif;
    color: var(--tool-ink);
    letter-spacing: 0;
}

.tool-brand-panel h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-topbar h1,
.tool-auth-card h4,
.tool-hero h2,
.tool-section-header h3,
.tool-brand-title {
    font-weight: 700;
}

.tool-lead {
    color: var(--tool-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 32rem;
}

.tool-feature-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.tool-feature-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(233, 226, 216, 0.95);
    border-radius: 16px;
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
}

.tool-feature-item i,
.tool-upload-icon i,
.tool-module-card i {
    color: var(--tool-button-orange);
    font-size: 1.4rem;
}

.tool-auth-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(27, 18, 18, 0.1);
}

.tool-logo-frame {
    align-items: center;
    display: flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.tool-logo-symbol {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: auto;
    height: auto;
}

.tool-logo-frame-sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    flex: 0 0 auto;
    height: 38px;
    padding: 5px;
    width: 38px;
}

.tool-logo-symbol-sidebar {
    max-height: 100%;
    max-width: 100%;
}

.tool-auth-note {
    align-items: center;
    color: var(--tool-muted);
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.tool-dashboard-page {
    background: #f7f3ed;
    min-height: 100vh;
}

.tool-shell {
    display: flex;
    min-height: 100vh;
}

.tool-sidebar-backdrop {
    background: rgba(9, 15, 20, 0.42);
    border: 0;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.tool-sidebar {
    background: linear-gradient(180deg, #192733 0%, #13202b 100%);
    color: #d6d1ca;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 280px;
    padding: 1.75rem 1.25rem;
}

.tool-sidebar-brand {
    align-items: center;
    display: flex;
    margin-bottom: 2rem;
}

.tool-menu-label {
    color: #9f978d;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-logo-white-sidebar {
    display: block;
    height: auto;
    max-width: 136px;
    object-fit: contain;
    width: 100%;
}

.tool-nav {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.tool-nav-link {
    align-items: center;
    border-radius: 12px;
    color: #d6d1ca;
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.tool-nav-link:hover,
.tool-nav-link.active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.tool-sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
}

.tool-main {
    flex: 1;
    padding: 2rem;
}

.tool-auth-actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.tool-auth-button {
    align-items: center;
    background: linear-gradient(135deg, #ff6d3b 0%, var(--tool-button-orange) 100%);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(255, 90, 42, 0.22);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    min-height: 58px;
    padding: 0.95rem 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tool-google-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    justify-content: center;
    margin-right: 0.55rem;
    width: 28px;
}

.tool-google-badge svg {
    display: block;
    height: 18px;
    width: 18px;
}

.tool-auth-button:hover {
    box-shadow: 0 18px 36px rgba(255, 90, 42, 0.28);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.tool-dashboard-page .btn-primary {
    background: linear-gradient(135deg, #ff6d3b 0%, var(--tool-button-orange) 100%);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(255, 90, 42, 0.18);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.tool-dashboard-page .btn-primary:hover,
.tool-dashboard-page .btn-primary:focus,
.tool-dashboard-page .btn-primary:active {
    background: linear-gradient(135deg, #ff6d3b 0%, var(--tool-button-orange) 100%);
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(255, 90, 42, 0.24);
    color: #fff;
}

.tool-dashboard-page .btn-primary:disabled,
.tool-dashboard-page .btn-primary.disabled {
    background: linear-gradient(135deg, #ff9b7c 0%, #ff8a66 100%);
    border-color: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.96);
    opacity: 1;
}

.tool-dashboard-page .btn-light,
.tool-dashboard-page .btn-outline-light {
    background: rgba(255, 90, 42, 0.08);
    border-color: rgba(255, 90, 42, 0.24);
    color: var(--tool-button-orange);
    font-weight: 600;
}

.tool-dashboard-page .btn-light:hover,
.tool-dashboard-page .btn-light:focus,
.tool-dashboard-page .btn-outline-light:hover,
.tool-dashboard-page .btn-outline-light:focus {
    background: rgba(255, 90, 42, 0.12);
    border-color: rgba(255, 90, 42, 0.32);
    color: var(--tool-button-orange);
}

.tool-dashboard-page .btn-light:disabled,
.tool-dashboard-page .btn-light.disabled {
    background: rgba(255, 90, 42, 0.08);
    border-color: rgba(255, 90, 42, 0.2);
    color: rgba(255, 90, 42, 0.76);
    opacity: 1;
}

.tool-topbar,
.tool-hero,
.tool-panel,
.tool-module-card,
.tool-stat-card {
    border-radius: 20px;
}

.tool-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.tool-topbar-branding {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.tool-topbar-logo-mobile {
    display: none;
    height: auto;
    max-width: 108px;
    object-fit: contain;
    width: 108px;
}

.tool-topbar h1 {
    font-size: 2rem;
    margin: 0.65rem 0 0;
}

.tool-topbar-user {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.tool-topbar-meta {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.tool-menu-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 14px;
    color: var(--tool-ink);
    display: none;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tool-menu-toggle i {
    font-size: 1.35rem;
}

.tool-user-menu {
    position: relative;
    z-index: 30;
}

.tool-user-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--tool-ink);
    display: inline-flex;
    gap: 0.75rem;
    padding: 0;
}

.tool-user-trigger strong {
    color: var(--tool-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.tool-user-trigger i {
    color: var(--tool-muted);
    font-size: 1.2rem;
}

.tool-user-avatar {
    border: 2px solid rgba(25, 39, 51, 0.08);
    border-radius: 999px;
    display: block;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.tool-user-dropdown {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(18, 27, 33, 0.12);
    min-width: 180px;
    opacity: 0;
    padding: 0.5rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 35;
}

.tool-user-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tool-user-logout {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--tool-button-orange);
    display: inline-flex;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    width: 100%;
}

.tool-user-logout i,
.tool-user-logout span {
    color: inherit;
    font-size: 0.98rem;
    font-weight: 600;
}

.tool-user-logout:hover {
    background: rgba(255, 90, 42, 0.08);
}

.tool-hero {
    background: linear-gradient(135deg, #ffffff 0%, #fbf1f1 100%);
    border: 1px solid var(--tool-line);
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.tool-hero-copy p,
.tool-section-header p,
.tool-module-card span,
.tool-stat-card small,
.tool-status-card small,
.tool-mini-card span {
    color: var(--tool-muted);
}

.tool-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tool-status-card,
.tool-stat-card,
.tool-mini-card,
.tool-module-card {
    background: var(--tool-surface);
    border: 1px solid var(--tool-line);
    padding: 1rem 1.1rem;
}

.tool-status-card span,
.tool-stat-card span {
    color: var(--tool-muted);
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.tool-status-card strong,
.tool-stat-card strong,
.tool-mini-card strong,
.tool-module-card strong {
    color: var(--tool-text);
    display: block;
    font-size: 1rem;
}

.tool-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    margin-bottom: 1.5rem;
}

.tool-grid-single {
    grid-template-columns: 1fr;
}

.tool-panel {
    border: 1px solid var(--tool-line);
    box-shadow: none;
}

.tool-section-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tool-section-header h3 {
    margin-bottom: 0.4rem;
}

.tool-upload-dropzone {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 90, 42, 0.06), rgba(255, 90, 42, 0.025)),
        #fffaf9;
    border: 2px dashed rgba(255, 90, 42, 0.28);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.tool-upload-dropzone.is-dragover {
    background:
        linear-gradient(180deg, rgba(255, 90, 42, 0.1), rgba(255, 90, 42, 0.045)),
        #fff8f4;
    border-color: rgba(255, 90, 42, 0.46);
}

.tool-upload-icon {
    align-items: center;
    background: var(--tool-accent-soft);
    border-radius: 18px;
    display: flex;
    height: 64px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 64px;
}

.tool-transcript-panel {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--tool-line);
    border-radius: 18px;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.tool-transcript-toolbar {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.tool-transcript-toolbar strong {
    color: var(--tool-text);
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.tool-transcript-toolbar p {
    color: var(--tool-muted);
    margin: 0;
}

.tool-transcript-toolbar p.is-error {
    color: #b53424;
}

.tool-transcript-output {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 14px;
    color: var(--tool-text);
    min-height: 220px;
    padding: 1rem;
    resize: vertical;
    width: 100%;
}

.tool-admin-history {
    margin-bottom: 1.5rem;
}

.tool-history-state {
    color: var(--tool-muted);
    margin-bottom: 0.5rem;
}

.tool-history-list {
    display: grid;
    gap: 0.9rem;
}

.tool-history-entry {
    background: #fffaf7;
    border: 1px solid var(--tool-line);
    border-radius: 16px;
    padding: 1rem;
}

.tool-history-entry-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.tool-history-entry-head strong {
    color: var(--tool-text);
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.tool-history-entry-head span,
.tool-history-meta span {
    color: var(--tool-muted);
    font-size: 0.92rem;
}

.tool-history-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.tool-history-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
}

.tool-history-status.is-success {
    background: rgba(27, 180, 102, 0.12);
    color: #148250;
}

.tool-history-status.is-error {
    background: rgba(217, 64, 42, 0.12);
    color: #b53424;
}

.tool-history-preview {
    color: var(--tool-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

.tool-checklist {
    margin-top: 1rem;
}

.tool-mini-card {
    border-radius: 16px;
    height: 100%;
}

.tool-status-list {
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-status-list li {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.tool-modules {
    margin-bottom: 1rem;
}

.tool-module-card {
    border-radius: 18px;
    display: grid;
    gap: 0.5rem;
    height: 100%;
}

.tool-module-actions {
    margin-top: 0.5rem;
}

.tool-module-card-muted {
    background: #fcf7f4;
}

.btn-light {
    background-color: #fff;
    border-color: var(--tool-line);
    color: var(--tool-text);
}

.bg-soft-primary {
    background-color: rgba(27, 180, 102, 0.12) !important;
}

.text-primary {
    color: #148250 !important;
}

.alert-danger {
    background: #fff0f1;
    border-color: #f3c4c7;
    color: #9b1c21;
}

@media (max-width: 991.98px) {
    .tool-shell {
        display: block;
    }

    .tool-sidebar {
        bottom: 0;
        min-width: 280px;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        transition: transform 0.22s ease;
        width: min(84vw, 320px);
        z-index: 50;
    }

    .tool-sidebar.is-open {
        transform: translateX(0);
    }

    .tool-sidebar-open .tool-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .tool-main {
        padding: 1.25rem;
    }

    .tool-topbar {
        align-items: center;
    }

    .tool-topbar-branding {
        flex: 1;
        min-width: 0;
    }

    .tool-topbar-logo-mobile {
        display: block;
    }

    .tool-topbar h1 {
        display: none;
    }

    .tool-topbar-meta {
        margin-left: auto;
    }

    .tool-menu-toggle {
        background: linear-gradient(135deg, #ff6d3b 0%, var(--tool-button-orange) 100%);
        border-color: transparent;
        box-shadow: 0 12px 24px rgba(255, 90, 42, 0.18);
        color: #fff;
        display: inline-flex;
        height: 52px;
        order: 2;
        width: 52px;
    }

    .tool-menu-toggle i {
        font-size: 1.5rem;
    }

    .tool-user-trigger {
        gap: 0.45rem;
    }

    .tool-user-trigger strong {
        display: none;
    }

    .tool-user-avatar {
        height: 40px;
        width: 40px;
    }

    .tool-hero,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-history-entry-head {
        flex-direction: column;
    }

    .tool-history-meta {
        align-items: flex-start;
        text-align: left;
    }
}
