/* Pi-Kiosk Wizard Styles */

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

:root {
    --primary: #007bff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --bg: #f5f5f5;
    --surface: white;
    --text: #333;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

.wizard-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.progress {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
}

.progress-bar {
    background: white;
    height: 100%;
    width: 33.33%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#step-text {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* Steps */
.wizard-step {
    display: none;
    padding: 40px;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.step-content > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

.info-box p {
    margin: 5px 0;
    color: #0056b3;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 15px;
}

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

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: #bbb;
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.connected {
    background: var(--success);
}

/* WiFi List */
.wifi-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.wifi-item {
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.wifi-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.wifi-item.selected {
    border-color: var(--primary);
    background: #e7f3ff;
}

.wifi-item input[type="radio"] {
    display: none;
}

.wifi-item label {
    display: block;
    padding: 15px;
    cursor: pointer;
}

.wifi-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wifi-ssid {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.wifi-security {
    font-size: 14px;
    color: #666;
}

.wifi-signal {
    font-size: 14px;
    color: #666;
    font-family: monospace;
}

.no-networks {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading p {
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-container input[type="range"] {
    flex: 1;
}

.range-container span {
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Navigation */
.wizard-nav {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.wizard-nav .btn {
    flex: 1;
    margin-bottom: 0;
}

/* Status Message */
.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success Step */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--success);
}

.success-info {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.success-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-top: 30px;
}

.success-details p {
    margin: 10px 0;
    color: #333;
}

.success-details strong {
    color: #666;
    margin-right: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--primary);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .wizard-container {
        border-radius: 12px;
    }

    header {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .wizard-step {
        padding: 25px;
    }

    .wifi-list {
        max-height: 300px;
    }
}

/* Scrollbar Styling */
.wifi-list::-webkit-scrollbar {
    width: 8px;
}

.wifi-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wifi-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wifi-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

