/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1f3460;
    --accent-primary: #6c63ff;
    --accent-secondary: #e94560;
    --accent-success: #00d9a5;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border-color: #2a2a4a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================================
   Layout & Navigation
======================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
    width: calc(100% - 260px);
}

/* Sidebar Elements */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 8px;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 1.1rem;
}

.sidebar-footer {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   View Sections
======================================== */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ========================================
   Schema Generator Styles
======================================== */
.schema-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.schema-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Fix Date Input Calendar Icon for Dark Mode */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Schema Preview (Code Block) */
.schema-preview {
    background: #0d1117;
    /* GitHub Dark specific bg */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: sticky;
    top: 32px;
    height: fit-content;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Consolas', monospace;
}

.btn-copy-code {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-code:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.code-block {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #e6edf3;
    line-height: 1.5;
    white-space: pre;
}

/* Responsive adjust */
@media (max-width: 1024px) {
    .schema-container {
        grid-template-columns: 1fr;
    }

    .schema-preview {
        position: static;
    }
}


/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #5a52d5);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ========================================
   Search Bar
======================================== */
.search-container {
    margin-bottom: 32px;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* ========================================
   Prompts Grid
======================================== */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ========================================
   Prompt Card
======================================== */
.prompt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.prompt-card.dragging {
    opacity: 0.5;
    border: 2px dashed var(--accent-color);
    background: var(--bg-secondary);
}

.prompt-card.dragging * {
    pointer-events: none;
}

.prompt-card.drag-over {
    border-top: 2px solid var(--accent-color);
    /* border-top: 2px dashed var(--text-secondary); */
    transform: translate(0);
}

.prompt-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
}

.card-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 4em;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-btn-copy {
    background: linear-gradient(135deg, var(--accent-success), #00b890);
    color: white;
}

.card-btn-copy:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 217, 165, 0.4);
}

.card-btn-edit {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.card-btn-edit:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.card-btn-delete {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    flex: 0;
}

.card-btn-delete:hover {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
}

/* ========================================
   Empty State
======================================== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state.show {
    display: flex;
}

.prompts-grid:empty+.empty-state {
    display: flex;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: grayscale(0.5);
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* ========================================
   Modal
======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
}

/* ========================================
   Form
======================================== */
#promptForm {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

/* ========================================
   Toast Notification
======================================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-success);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 1.2rem;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .app-container {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .tagline {
        margin-left: 0;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-wrap: wrap;
    }

    .card-btn-copy {
        flex: 1 1 100%;
    }

    .card-btn-edit,
    .card-btn-delete {
        flex: 1;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Scrollbar Styling
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Copy Modal (Variables)
======================================== */
.copy-modal {
    max-width: 550px;
}

#copyModalBody {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.variable-group {
    margin-bottom: 20px;
}

.variable-group:last-child {
    margin-bottom: 0;
}

.variable-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.variable-label code {
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.variable-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.variable-input::placeholder {
    color: var(--text-muted);
}

.variable-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.variable-input.textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.copy-modal-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.no-variables-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.no-variables-msg p {
    margin-bottom: 8px;
}

.no-variables-msg small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Selection Styling
======================================== */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   Image Compressor Styles
======================================== */
.compressor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(108, 99, 255, 0.05);
}

.drop-zone-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
    transition: transform var(--transition-normal);
}

.drop-zone:hover .drop-zone-icon {
    transform: scale(1.1);
    opacity: 0.8;
    color: var(--accent-primary);
}

.drop-zone h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.drop-zone p {
    opacity: 0.6;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
    animation: fadeIn 0.3s ease;
}

.result-item:hover {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    flex: 1;
    margin-right: 20px;
}

.result-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.arrow-separator {
    opacity: 0.5;
    margin: 0 6px;
    color: var(--text-muted);
}

.result-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-success {
    color: var(--accent-success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-error {
    color: var(--accent-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-actions .btn {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ========================================
   Image Compressor Styles
======================================== */
.compressor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(108, 99, 255, 0.05);
}

.drop-zone-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
    transition: transform var(--transition-normal);
}

.drop-zone:hover .drop-zone-icon {
    transform: scale(1.1);
    opacity: 0.8;
    color: var(--accent-primary);
}

.drop-zone h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.drop-zone p {
    opacity: 0.6;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
    animation: fadeIn 0.3s ease;
}

.result-item:hover {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    flex: 1;
    margin-right: 20px;
}

.result-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.arrow-separator {
    opacity: 0.5;
    margin: 0 6px;
    color: var(--text-muted);
}

.result-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-success {
    color: var(--accent-success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-error {
    color: var(--accent-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-actions .btn {
    padding: 6px 14px;
    font-size: 0.85rem;
}
/* ========================================
   Refactor Wizard Styles Refined
======================================== */
.wizard-interface {
    max-width: 900px;
    margin: 0 auto;
}

/* Stepper */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 40px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0.5;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.step-item:hover {
    opacity: 0.8;
}

.step-item.active, .step-item.completed {
    opacity: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.step-item.active .step-circle {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.step-item.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 15px;
    position: relative;
    top: -18px;
    z-index: 1;
}

/* Wizard Card */
.wizard-card {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

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

.wizard-header {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.1), transparent);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-badge {
    background: rgba(255,255,255,0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

.wizard-body {
    padding: 40px;
    flex: 1;
}

.wizard-info {
    margin-bottom: 32px;
    padding: 20px 24px;
    background: rgba(108, 99, 255, 0.08); 
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.wizard-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    background: rgba(0,0,0,0.2);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}

.wizard-inputs .form-group {
    margin-bottom: 0;
}

.wizard-preview label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.wizard-preview textarea {
    width: 100%;
    min-height: 250px;
    padding: 20px;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #e6edf3;
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}

.wizard-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
}
