:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-input: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    /* Electric Blue */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-effect: rgba(255, 255, 255, 0.03);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Step Themes */
.theme-step-1 {
    --accent-primary: #3b82f6;
    /* Blue */
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.theme-step-2 {
    --accent-primary: #ef4444;
    /* Red */
    --accent-secondary: #dc2626;
    --accent-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.theme-step-3 {
    --accent-primary: #eab308;
    /* Yellow/Gold */
    --accent-secondary: #ca8a04;
    --accent-gradient: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.theme-step-4 {
    --accent-primary: #22c55e;
    /* Green */
    --accent-secondary: #16a34a;
    --accent-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.theme-step-5 {
    --accent-primary: #3b82f6;
    /* Blue */
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

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

/* Header */
.main-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Stepper Navigation */
.stepper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border: var(--card-border);
}

.step-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.step-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.step-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
}

/* Content Area */
#step-container {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Step Content Styles */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-badge {
    background: var(--accent-primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* Rounded square like screenshot */
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--accent-primary);
}

/* Inline Input Group for Screenshot Layout */
.input-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

.input-row .main-input {
    flex: 1;
    border-radius: 6px;
}

.input-row .action-btn {
    width: auto;
    padding: 0 2rem;
    margin: 0;
    border-radius: 6px;
    white-space: nowrap;
}

.input-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    /* Smaller, uppercase like screenshot */
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.main-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.main-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.action-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

/* Output Area */
.output-area {
    margin-top: 2rem;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.output-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.output-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.output-box {
    width: 100%;
    padding: 1.5rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
}

.copy-btn {
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stepper-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step-line {
        display: none;
    }

    .step-btn {
        flex: 1 1 40%;
        text-align: center;
    }
}