/* ==========================================================================
   KryptonOS - Calamares / Ubiquity Style Installer Wizard CSS
   ========================================================================== */

.calamares-installer-app {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #2b2b2b;
    color: #f0f0f0;
    font-family: 'Fira Code', 'Segoe UI', sans-serif;
    user-select: none;
    overflow: hidden;
}

/* Left Sidebar Navigation Steps */
.installer-sidebar {
    width: 200px;
    background-color: #1e1e1e;
    border-right: 1px solid #3c3c3c;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-step {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.sidebar-step.active {
    background-color: #383838;
    color: #00e5ff;
    border-left: 4px solid #00e5ff;
    font-weight: 600;
}

.sidebar-step.completed {
    color: #10b981;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.sidebar-step.active .step-num {
    background-color: #00e5ff;
    color: #000000;
}

.sidebar-step.completed .step-num {
    background-color: #10b981;
    color: #ffffff;
}

/* Main Form Area */
.installer-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 28px;
    background-color: #252526;
    overflow-y: auto;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.step-subtitle {
    font-size: 13px;
    color: #9cdcfe;
    margin-bottom: 20px;
}

/* Step 1: Language */
.lang-list-container {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    background-color: #1e1e1e;
}

.lang-item {
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
}

.lang-item:hover {
    background-color: #2d2d2d;
}

.lang-item.selected {
    background-color: #04395e;
    color: #ffffff;
    font-weight: 600;
}

/* Step 2: Timezone */
.tz-selector-card {
    background-color: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tz-select {
    width: 100%;
    padding: 10px 14px;
    background-color: #2d2d2d;
    border: 1px solid #454545;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
}

.clock-preview {
    font-family: 'Fira Code', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #00e5ff;
    text-align: center;
    background-color: #111;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #333;
}

/* Step 3: Wi-Fi List */
.wifi-network-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wifi-card {
    background-color: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.wifi-card:hover {
    background-color: #2d2d2d;
    border-color: #00e5ff;
}

.wifi-card.connected {
    border-color: #10b981;
    background-color: #064e3b;
}

.wifi-name {
    font-weight: 600;
    font-size: 13px;
}

.wifi-status-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #333;
}

.wifi-card.connected .wifi-status-badge {
    background-color: #10b981;
    color: #000;
    font-weight: bold;
}

/* Step 4: User Configuration (Who are you?) */
.user-form-card {
    background-color: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.user-form-input {
    width: 100%;
    padding: 9px 12px;
    background-color: #2d2d2d;
    border: 1px solid #454545;
    color: #ffffff;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.user-form-input:focus {
    border-color: #00e5ff;
    background-color: #333333;
}

.user-form-hint {
    font-size: 11px;
    color: #888888;
}

/* Step 5: Storage Drives */
.drive-card {
    background-color: #1e1e1e;
    border: 2px solid #3c3c3c;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    margin-bottom: 12px;
}

.drive-card.selected {
    border-color: #00e5ff;
    background-color: #0b253a;
}

.drive-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ef4444;
}

.drive-icon {
    font-size: 32px;
}

.drive-info {
    flex: 1;
}

.drive-name {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.drive-size {
    font-size: 12px;
    color: #aaa;
}

/* Installation Progress & Logs */
.installer-progress-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.progress-track {
    height: 18px;
    background-color: #111;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #3c3c3c;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00e5ff, #10b981);
    background-size: 28px 28px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: progressStripe 1s linear infinite;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

@keyframes progressStripe {
    0% { background-position: 0 0; }
    100% { background-position: 28px 0; }
}

.installer-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #383838;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.metric-label {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
}

.metric-value.highlight {
    color: #00e5ff;
}

.speed-badge {
    color: #10b981;
    transition: color 0.25s ease;
}

.speed-badge.burst {
    color: #38bdf8;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.speed-badge.slow {
    color: #f59e0b;
}

.speed-badge.stall {
    color: #ef4444;
}

.installer-terminal-logs {
    flex: 1;
    background-color: #0d0d0d;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #00ffaa;
    overflow-y: auto;
    max-height: 250px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.log-line {
    margin-bottom: 3px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Wizard Footer Action Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #3c3c3c;
    padding-top: 16px;
    margin-top: 16px;
}

.wizard-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease;
}

.wizard-btn.btn-prev {
    background-color: #383838;
    color: #ffffff;
}

.wizard-btn.btn-prev:hover {
    background-color: #4a4a4a;
}

.wizard-btn.btn-next {
    background-color: #00e5ff;
    color: #000000;
}

.wizard-btn.btn-next:hover {
    background-color: #33ebff;
}

.wizard-btn.btn-install {
    background-color: #10b981;
    color: #ffffff;
}

.wizard-btn.btn-install:hover {
    background-color: #059669;
}
