/* ================= WIZARD PAGE ================= */

#activity-wizard {
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    padding: 24px;
}

/* ================= WIZARD CONTAINER ================= */

#wizard-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

/* ================= HEADER ================= */

.wizard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

/* Title + edit button cluster */
.wizard-title-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Title + input share space */
.wizard-title,
.wizard-title-input {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Input looks like title */
.wizard-title-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

/* Icon buttons */
#edit-activity-name-btn,
#wizard-close-btn {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;

    font-size: 14px;
    line-height: 1;
    color: #374151;
}

/* Hover */
#edit-activity-name-btn:hover,
#wizard-close-btn:hover {
    background: #e5e7eb;
    border-radius: 6px;
}

/* Disabled edit (future-safe) */
#edit-activity-name-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================= STEP INDICATOR ================= */

.wizard-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 6px;
    border-radius: 6px;
    background: #e5e7eb;
    color: #374151;
}

.wizard-step.active {
    background: #2563eb;
    color: #ffffff;
}

/* ================= STEP CONTENT ================= */

.wizard-step-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.wizard-step-content:not(.hidden) {
    display: flex;
    flex-direction: column;
}

/* ================= STEP 2 FULL WORKSPACE ================= */

#wizard-step-2:not(.hidden) {
    flex: 1;
}

#wizard-container.step-2-fullscreen {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 16px 24px;
}

/* ================= CSV TABLE ================= */

.table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    margin-top: 8px;
}

#csv-preview-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#csv-preview-table th,
#csv-preview-table td {
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    white-space: nowrap;
}

#csv-preview-table th {
    background: #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
}

/* ================= FORM ELEMENTS ================= */

#wizard-container label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

#wizard-container textarea {
    resize: vertical;
    padding: 8px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

/* ================= FOOTER ================= */

.wizard-footer,
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

/* ================= UTILITY ================= */

.hidden {
    display: none !important;
}
