/*
 * Geo POS Premium Installer CSS
 * A stunning, modern, and glassmorphism-based design.
 */

:root {
    --primary-hsl: 270, 70%, 60%;
    --primary-color: hsl(var(--primary-hsl));
    --primary-hover: hsl(270, 70%, 50%);
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --input-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0f172a;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Animated Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #818cf8 100%);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: move-center 25s infinite alternate;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    opacity: 0.1;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(100px, 100px) rotate(90deg);
    }
}

@keyframes move-center {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-40%, -60%) scale(1.2);
    }
}

/* Main Container */
.install-container {
    width: 100%;
    max-width: 850px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* Glass Card */
.install-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.install-header {
    padding: 40px 40px 24px;
    text-align: center;
}

.install-header h2,
.install-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.install-header p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 40px 32px;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    transform: scale(1.1);
}

.step.active .step-label {
    color: white;
}

.step.completed .step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Content Area */
.install-body {
    padding: 0 40px 40px;
    min-height: 350px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f8fafc;
}

/* Welcome & Alerts */
.welcome-note {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.welcome-note p {
    font-size: 15px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Tables */
.table-requirements {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-bottom: 24px;
}

.table-requirements td {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 14px;
    color: #e2e8f0;
}

.table-requirements tr td:first-child {
    border-radius: 10px 0 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-requirements tr td:last-child {
    border-radius: 0 10px 10px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

.status-valid {
    color: var(--success-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.status-invalid {
    color: var(--error-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* Buttons */
.install-footer {
    padding: 24px 40px 40px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button#btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

button#btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hide {
    display: none !important;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.text-highlight-yellow {
    color: #fcd34d;
    text-decoration: none;
    font-weight: 600;
}