@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Decoration */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-700) 100%);
    z-index: -1;
}

.installer-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    flex-grow: 1;
}

.installer-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 900px;
    display: flex;
    overflow: hidden;
    min-height: 500px;
}

/* Sidebar */
.installer-sidebar {
    background: var(--slate-50);
    width: 280px;
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-900);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 2rem;
    position: relative;
}

.step-item:last-child {
    padding-bottom: 0;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 28px;
    bottom: 0;
    width: 1px;
    background: var(--slate-200);
}

.step-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--slate-300);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    z-index: 1;
    flex-shrink: 0;
}

.step-item.active .step-indicator {
    border-color: var(--primary-500);
    background: var(--white);
    color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.step-item.completed .step-indicator {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--white);
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: var(--slate-900);
}

.step-content p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--slate-600);
}

/* Main Content */
.installer-main {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.installer-header {
    margin-bottom: 2.5rem;
}

.installer-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

.installer-header p {
    margin: 0;
    color: var(--slate-600);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-800);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--slate-900);
    transition: all 0.2s;
    box-sizing: border-box;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-700);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

.footer-actions {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: flex-end;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    gap: 0.75rem;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #15803d;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .installer-card {
        flex-direction: column;
    }

    .installer-sidebar {
        width: 100%;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--slate-200);
        box-sizing: border-box;
    }

    .steps-list {
        display: flex;
        justify-content: space-between;
    }

    .step-item {
        padding-bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .step-content {
        display: none;
    }

    .installer-main {
        padding: 1.5rem;
    }
}