/*
 * BitorePOS Installation Wizard — OneDash Modern Theme
 * Loaded only by layouts/install.blade.php
 */

/* ===== Page shell ===== */
body.install-wizard {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3461ff 45%, #6366f1 100%);
    background-attachment: fixed;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

body.install-wizard::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.35) 0, transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.25) 0, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.install-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
}

.install-brand {
    text-align: center;
    color: #ffffff;
    margin-bottom: 1.75rem;
}

.install-brand .brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.85rem;
}

.install-brand h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.install-brand p {
    margin: 0.35rem 0 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* ===== Card ===== */
.install-card {
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45),
                0 10px 25px -10px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.install-card .install-card-header {
    padding: 1.5rem 2rem 1.25rem;
    border-bottom: 1px solid #eef0f4;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.install-card .install-card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.install-card .install-card-header h2 i {
    color: #3461ff;
}

.install-card .install-card-header p.subtitle {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.install-card .install-card-body {
    padding: 1.75rem 2rem 2rem;
}

.install-card .install-card-footer {
    padding: 1rem 2rem 1.25rem;
    border-top: 1px solid #eef0f4;
    background: #fafbff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== Stepper ===== */
.install-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.install-stepper li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

.install-stepper li + li::before {
    content: "";
    height: 2px;
    flex: 1;
    background: #e5e7eb;
    border-radius: 2px;
    margin-right: 0.65rem;
}

.install-stepper li .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f9;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.install-stepper li.active {
    color: #3461ff;
}

.install-stepper li.active .step-num {
    background: #3461ff;
    color: #ffffff;
    border-color: #3461ff;
    box-shadow: 0 6px 14px rgba(52, 97, 255, 0.35);
}

.install-stepper li.done {
    color: #15ca20;
}

.install-stepper li.done .step-num {
    background: #15ca20;
    color: #ffffff;
    border-color: #15ca20;
}

.install-stepper li.done + li::before,
.install-stepper li.active + li::before {
    background: #c7d2fe;
}

/* ===== Forms ===== */
.install-card form .form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-card form .form-section-title:first-child {
    margin-top: 0;
}

.install-card form .form-section-title i {
    color: #3461ff;
}

.install-card form .form-section-title small {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.78rem;
    margin-left: 0.5rem;
}

.install-card form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.install-card form .form-control,
.install-card form .form-select {
    border-radius: 8px;
    border: 1px solid #d8dde7;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.install-card form .form-control:focus,
.install-card form .form-select:focus {
    border-color: #3461ff;
    box-shadow: 0 0 0 3px rgba(52, 97, 255, 0.18);
    outline: none;
}

/* ===== Buttons ===== */
.install-card .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.install-card .btn-primary {
    background: linear-gradient(135deg, #3461ff 0%, #5e72e4 100%);
    border: 0;
    box-shadow: 0 6px 14px rgba(52, 97, 255, 0.3);
}

.install-card .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(52, 97, 255, 0.4);
}

.install-card .btn-default,
.install-card .btn-secondary {
    background: #f1f3f9;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.install-card .btn-default:hover,
.install-card .btn-secondary:hover {
    background: #e5e7eb;
}

.install-card .btn-success {
    background: linear-gradient(135deg, #15ca20 0%, #2bd342 100%);
    border: 0;
    color: #fff;
}

.install-card .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border: 0;
    color: #fff;
}

.install-card .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ===== Requirements check table ===== */
.install-check-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.install-check-table tr {
    border-bottom: 1px solid #eef0f4;
}

.install-check-table tr:last-child {
    border-bottom: 0;
}

.install-check-table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.88rem;
    color: #374151;
    border-bottom: 1px solid #f1f3f9;
}

.install-check-table td:last-child {
    text-align: right;
    width: 60px;
}

.install-check-table code,
.install-check-table b {
    background: #f1f3f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #1f2937;
    font-weight: 600;
    word-break: break-all;
}

.check-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
}

.check-badge.ok {
    background: rgba(21, 202, 32, 0.12);
    color: #15ca20;
}

.check-badge.fail {
    background: rgba(253, 53, 80, 0.12);
    color: #fd3550;
}

/* ===== Alerts ===== */
.install-card .alert {
    border-radius: 10px;
    border: 0;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
}

.install-card .alert-danger {
    background: rgba(253, 53, 80, 0.08);
    color: #b91c1c;
    border-left: 3px solid #fd3550;
}

.install-card .alert-success {
    background: rgba(21, 202, 32, 0.08);
    color: #166534;
    border-left: 3px solid #15ca20;
}

.install-card .alert-info {
    background: rgba(13, 202, 240, 0.08);
    color: #075985;
    border-left: 3px solid #0dcaf0;
}

/* ===== Success page ===== */
.install-success-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #15ca20 0%, #2bd342 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 16px 40px rgba(21, 202, 32, 0.4);
    animation: install-pop 0.5s ease;
}

@keyframes install-pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.install-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.install-help-list li {
    background: #f8f9ff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.install-help-list li i {
    color: #3461ff;
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.install-help-list li strong {
    display: block;
    color: #1f2937;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.install-help-list li span {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.35;
}

.install-footer-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1.5rem;
}

.install-footer-note a {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 575px) {
    .install-shell { padding: 1.25rem 0.75rem 2rem; }
    .install-card .install-card-header,
    .install-card .install-card-body,
    .install-card .install-card-footer { padding-left: 1.1rem; padding-right: 1.1rem; }
    .install-stepper li { font-size: 0; gap: 0; }
    .install-stepper li .step-num { width: 28px; height: 28px; }
    .install-stepper li + li::before { margin-right: 0.35rem; }
}

/* compatibility hide */
.hide { display: none !important; }
