/* Installer – standalone copy of the default theme tokens (assets/scss/_tokens.scss); the app CSS isn't loaded here */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/css/fonts/inter/inter-regular.woff2') format('woff2'), url('../assets/css/fonts/inter/inter-regular.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/css/fonts/inter/inter-500.woff2') format('woff2'), url('../assets/css/fonts/inter/inter-500.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/css/fonts/inter/inter-600.woff2') format('woff2'), url('../assets/css/fonts/inter/inter-600.woff') format('woff');
}

:root {
    --app-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --app-font-size: 15px;
    --app-font-size-sm: 13px;
    --app-text-color: #2f3d4a;
    --app-heading-color: #1f2d3d;
    --app-muted-color: #67727e;
    --app-placeholder-color: #999999;
    --app-background-color: #f9f9f9;
    --app-subtle-bg: rgba(0, 0, 0, 0.04);
    --primary: #6690f4;
    --primary-hover: #4076f2;
    --primary-soft: rgba(102, 144, 244, 0.12);
    --accent-teal: #33b996;
    --accent-teal-soft: rgba(51, 185, 150, 0.12);
    --accent-coral: #f2677f;
    --accent-coral-soft: rgba(242, 103, 127, 0.12);
    --accent-amber: #f2b93b;
    --accent-amber-soft: rgba(242, 185, 59, 0.14);
    --border-color: #e6eaf0;
    --row-border-color: #f0f2f5;
    --radius: 12px;
}

body {
    background-color: var(--app-background-color);
    color: var(--app-text-color);
    font-family: var(--app-font-family);
    font-size: var(--app-font-size);
    -webkit-font-smoothing: antialiased;
    --bs-body-color: var(--app-text-color);
    --bs-body-font-family: var(--app-font-family);
}

.install-box {
    max-width: 940px;
    margin: 15px auto;
    padding: 0 16px;
}

.icon {
    height: 16px;
    width: 16px;
    vertical-align: -3px;
}

/* Header */
.install-header {
    text-align: center;
    padding: 28px 32px 30px;
    color: #fff;
    background: linear-gradient(110deg, #7a2442 0%, #7a2a7e 30%, #7b1fa2 55%, #4a1a86 80%, #2e0f5a 100%);
}

.install-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.install-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* Card */
.card-install {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Steps */
.install-steps {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
}

.tab-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    color: var(--app-muted-color);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-title strong {
    font-weight: 500;
}

.tab-title.active {
    color: var(--app-heading-color);
    border-bottom-color: var(--primary);
}

.tab-title.active svg {
    color: var(--primary);
}

.tab-title svg.feather-check-circle {
    color: var(--accent-teal);
}

/* completed step (JS swaps its icon to check-circle): no underline, only the current step has one */
.tab-title:has(svg.feather-check-circle) {
    border-bottom-color: transparent;
}

#finished:has(svg.feather-check-circle) {
    border-bottom-color: var(--accent-teal);
}

/* Sections */
.section {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.section h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--app-heading-color);
    margin: 0 0 4px;
}

.section-note {
    color: var(--app-muted-color);
    margin-bottom: 16px;
}

/* Requirement tables */
.requirement-table {
    width: 100%;
}

.requirement-table th {
    font-size: var(--app-font-size-sm);
    font-weight: 500;
    color: var(--app-muted-color);
    padding: 0 8px 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.requirement-table .w-col {
    width: 35%;
}

.requirement-table td {
    padding: 9px 8px 9px 0;
    border-bottom: 1px solid var(--row-border-color);
}

.requirement-table tr:last-child td {
    border-bottom: 0;
}

.requirement-table th:last-child,
.requirement-table td:last-child {
    padding-right: 0;
}

.requirement-table td:first-child {
    color: var(--app-heading-color);
    font-weight: 500;
}

.requirement-table .path {
    color: var(--app-heading-color);
    background: var(--app-subtle-bg);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--app-font-size-sm);
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 20px;
}

.status-badge .icon {
    height: 13px;
    width: 13px;
    vertical-align: 0;
}

.status-badge.success {
    color: var(--accent-teal);
    background: var(--accent-teal-soft);
}

.status-badge.failed {
    color: var(--accent-coral);
    background: var(--accent-coral-soft);
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    color: var(--app-heading-color);
    font-weight: 500;
    padding-top: 8px;
}

.form-control {
    color: var(--app-text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: var(--app-font-size);
}

.form-control::placeholder {
    color: var(--app-placeholder-color);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Footer + buttons */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-top: 0;
    padding: 20px 32px;
}

.footer-note {
    color: var(--accent-coral);
    text-align: center;
}

.card-footer .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 6px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #fff !important;
}

.btn-primary:disabled {
    background-color: var(--primary);
    border-color: var(--primary);
    opacity: 0.5;
}

.loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loader::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: install-spin 0.7s linear infinite;
}

@keyframes install-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert */
#alert-container .alert {
    margin: 0;
    border: 0;
    border-radius: 8px;
    animation: install-alert-in 0.4s ease-out;
}

@keyframes install-alert-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.alert-danger {
    color: #c9364f;
    background: var(--accent-coral-soft);
}

/* Finished */
.finished-section {
    text-align: center;
    padding: 48px 32px;
    border-bottom: 0;
}

.finished-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-teal);
    background: var(--accent-teal-soft);
}

.finished-icon .icon {
    width: 28px;
    height: 28px;
    vertical-align: 0;
}

.finished-section h4 {
    font-size: 20px;
}

.delete-install-note {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 8px auto 24px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #9a6b06;
    background: var(--accent-amber-soft);
}

.go-to-login-page {
    text-decoration: none;
}

.hide {
    display: none !important;
}

@media (max-width: 767px) {
    .install-box {
        margin: 24px auto;
    }

    .section,
    .card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .install-steps {
        padding: 0 8px;
    }

    .tab-title {
        flex-direction: column;
        font-size: var(--app-font-size-sm);
        padding: 12px 4px;
        gap: 4px;
        white-space: nowrap;
    }

    .requirement-table .w-col {
        width: auto;
    }

    .requirement-table td:first-child {
        word-break: break-word;
    }

    .requirement-table th,
    .requirement-table td {
        font-size: var(--app-font-size-sm);
    }

    .status-badge {
        white-space: nowrap;
        padding: 2px 7px;
    }

    .form-group label {
        padding-top: 0;
        margin-bottom: 6px;
    }

}
