/* ITSWEBER CMS – Installer Styles */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-navy: #1a365d;
    --color-navy-light: #2d4a7a;
    --color-success: #16a34a;
    --color-error: #dc2626;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background: var(--color-gray-50);
    color: var(--color-gray-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.installer {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.installer-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--color-gray-200);
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: #fff;
}

.installer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.installer-logo span {
    color: var(--color-primary-light);
}

.installer-logo-img,
.installer-brand-logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.installer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.installer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.installer-brand-text span {
    color: var(--color-primary-light);
}

.installer-footer-brand {
    margin-bottom: 0.25rem;
}

.installer-footer-credits {
    opacity: 0.85;
}

.installer-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Step Indicator */
.installer-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    gap: 0;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    flex-shrink: 0;
}

.step-indicator.active {
    background: var(--color-primary);
    color: #fff;
}

.step-indicator.completed {
    background: var(--color-success);
    color: #fff;
}

.step-line {
    height: 2px;
    width: 24px;
    background: var(--color-gray-200);
    flex-shrink: 0;
}

.step-line.completed {
    background: var(--color-success);
}

/* Content */
.installer-content {
    padding: 2rem;
}

.installer-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.installer-content p {
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--color-gray-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    background: #fff;
    transition: border-color 0.15s;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover { background: var(--color-gray-200); }

.btn-disabled {
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    cursor: not-allowed;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* Alert */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

/* Requirements Table */
.requirements-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.requirements-table th,
.requirements-table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.requirements-table th {
    font-weight: 600;
    color: var(--color-gray-700);
    background: var(--color-gray-50);
}

.status-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

.status-badge.passed { background: #dcfce7; color: var(--color-success); }
.status-badge.failed { background: #fef2f2; color: var(--color-error); }

/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.theme-option {
    display: block;
    cursor: pointer;
}

.theme-option input { display: none; }

.theme-card {
    padding: 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}

.theme-option input:checked + .theme-card {
    border-color: var(--color-primary);
    background: #eff6ff;
}

.theme-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.theme-card small {
    color: var(--color-gray-500);
}

/* Completion */
.completion-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.completion-note {
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.completion-note code {
    background: var(--color-gray-200);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.language-selector .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.language-selector .lang-btn:hover {
    border-color: var(--color-primary);
    background: #eff6ff;
}

.language-selector .lang-btn.active {
    border-color: var(--color-primary);
    background: #eff6ff;
    color: var(--color-primary);
    font-weight: 600;
}

/* Alert success */
.alert-success {
    background: #f0fdf4;
    color: var(--color-success);
    border: 1px solid #bbf7d0;
}

/* Footer */
.installer-footer {
    text-align: center;
    padding: 1rem 2rem;
    border-top: 1px solid var(--color-gray-200);
    font-size: 0.75rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

.installer-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.installer-footer a:hover {
    text-decoration: underline;
}

.installer-footer .footer-credit {
    margin-top: 0.25rem;
}
