.project-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-index-modal);
    backdrop-filter: blur(4px);
}

.project-wizard {
    width: 1000px;
    max-width: 90vw;
    height: 650px;
    max-height: 85vh;
    background: #1e1e23;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #252529;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.wizard-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s;
}

.wizard-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wizard-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Templates grid */
.wizard-templates {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #1a1a1f;
    display: flex;
    flex-direction: column;
}

.templates-header {
    margin-bottom: 16px;
}

.templates-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #252529;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.template-card:hover {
    background: #2a2a2f;
    border-color: rgba(255, 255, 255, 0.1);
}

.template-card.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.template-preview {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: #666;
    margin-bottom: 8px;
}

.template-card.selected .template-preview {
    color: #3b82f6;
}

.template-name {
    font-size: 11px;
    color: #ccc;
    text-align: center;
    word-break: break-word;
}

.template-card.selected .template-name {
    color: #fff;
}

/* Details panel */
.wizard-details {
    width: 280px;
    background: #252529;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.details-preview {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-placeholder {
    width: 100%;
    height: 140px;
    background: #1a1a1f;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.details-info {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.details-info h2 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.details-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.details-settings {
    padding: 16px;
    flex: 1;
}

.details-settings h3 {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px 0;
}

.setting-field {
    margin-bottom: 12px;
}

.setting-field label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.setting-field input {
    width: 100%;
    padding: 8px 10px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}

.setting-field input:focus {
    border-color: #3b82f6;
}

.setting-field input::placeholder {
    color: #555;
}

.path-input-group {
    display: flex;
    gap: 4px;
}

.path-input-group input {
    flex: 1;
}

.browse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    background: #3b82f6;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.browse-btn:hover {
    background: #2563eb;
}

/* Footer */
.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    background: #252529;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.wizard-btn.secondary {
    background: transparent;
    color: #888;
}

.wizard-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.wizard-btn.primary {
    background: #3b82f6;
    color: #fff;
}

.wizard-btn.primary:hover {
    background: #2563eb;
}

.wizard-btn.primary:disabled {
    background: #3b3b3f;
    color: #666;
    cursor: not-allowed;
}

/* Scrollbar */
.wizard-sidebar::-webkit-scrollbar,
.wizard-templates::-webkit-scrollbar,
.wizard-details::-webkit-scrollbar {
    width: 6px;
}

.wizard-sidebar::-webkit-scrollbar-track,
.wizard-templates::-webkit-scrollbar-track,
.wizard-details::-webkit-scrollbar-track {
    background: transparent;
}

.wizard-sidebar::-webkit-scrollbar-thumb,
.wizard-templates::-webkit-scrollbar-thumb,
.wizard-details::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.wizard-sidebar::-webkit-scrollbar-thumb:hover,
.wizard-templates::-webkit-scrollbar-thumb:hover,
.wizard-details::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
