:root {
    --primary-color: #6366f1;
    /* Indigo-500 */
    --primary-dark: #4f46e5;
    --primary-content: #ffffff;

    --bg-color: #f8fafc;
    --card-bg: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;

    --success-color: #10b981;
    --error-color: #ef4444;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;

    --primary-color: #818cf8;
    --primary-dark: #6366f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 32px 32px;
}

@media (prefers-color-scheme: dark) {
    body {
        background-image: radial-gradient(#334155 1px, transparent 1px);
    }
}

.installer-wrapper {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
    min-height: 600px;
}

/* Sidebar */
.installer-sidebar {
    width: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.brand i {
    font-size: 1.8rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.step-item.active {
    opacity: 1;
    font-weight: 600;
    transform: translateX(4px);
}

.step-item.completed {
    opacity: 0.8;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-item.active .step-icon {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

.step-item.completed .step-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: transparent;
}

.sidebar-footer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: auto;
}

/* Main Content */
.installer-content {
    flex: 1;
    padding: 40px 48px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-header {
    margin-bottom: 32px;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

/* Specific Cards like Payment */
.option-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
    background: var(--card-bg);
}

.option-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Utility to hide fields initially */
.hidden-fields {
    display: none;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Payment Icons specific colors */
.icon-stripe {
    background: #e0e7ff;
    color: #6366f1;
}

.icon-paypal {
    background: #dbeafe;
    color: #2563eb;
}

.icon-razorpay {
    background: #e0f2fe;
    color: #0284c7;
}

.icon-cash {
    background: #d1fae5;
    color: #10b981;
}

.icon-bank {
    background: #fce7f3;
    color: #ec4899;
}

/* Alert */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .installer-wrapper {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        border: none;
        box-shadow: none;
    }

    .installer-sidebar {
        width: 100%;
        padding: 24px;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }

    .steps-list {
        flex-direction: row;
        gap: 16px;
    }

    .brand,
    .sidebar-footer {
        display: none;
    }

    .step-item span {
        display: none;
        /* Hide text on mobile, just show icons */
    }

    .installer-content {
        padding: 24px;
    }
}