:root {
    --bg-color: #0F172A;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --primary-color: #6366F1;
    --primary-hover: #4F46E5;
    --accent-color: #22D3EE;
    --accent-hover: #06B6D4;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(148, 163, 184, 0.2);
    --input-focus: #6366F1;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(34, 211, 238, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

.app-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    color: var(--text-main);
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Wizard Section */
.wizard-section {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-container {
    height: 4px;
    background: var(--input-border);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 20%;
    transition: width var(--transition);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Forms */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    margin-top: -0.25rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Checkboxes and Radios */
.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--input-border);
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input, .radio-group input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.mt-xl { margin-top: 2rem; }

/* Buttons */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--panel-border);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--input-border);
}

.btn-secondary:hover:not([disabled]) {
    background: rgba(255,255,255,0.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}
.btn-accent:hover {
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
}

/* Output Section */
.output-section {
    padding: 2rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--panel-border);
}

.output-actions {
    display: flex;
    gap: 1rem;
}

.export-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: var(--bg-color);
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid var(--panel-border);
    z-index: 10;
    overflow: hidden;
}

.export-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--panel-bg);
    color: var(--accent-color);
}

.output-content {
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.output-content h2 { margin: 1.5rem 0 0.5rem; color: var(--accent-color); font-size: 1.3rem;}
.output-content h2:first-child { margin-top: 0; }
.output-content h3 { margin: 1rem 0 0.5rem; color: var(--text-main); font-size: 1.1rem; }
.output-content p { margin-bottom: 1rem; }
.output-content ul { margin-bottom: 1rem; padding-left: 20px; }
.output-content li { margin-bottom: 0.25rem; }

/* Custom scrollbar for output */
.output-content::-webkit-scrollbar { width: 8px; }
.output-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
.output-content::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }
.output-content::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }


.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 1rem;
}

@media (max-width: 600px) {
    .header { padding: 1rem; }
    .wizard-section, .output-section { padding: 1.5rem 1rem; }
    .output-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
