* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: grid;
    grid-template-rows: 60px 1fr;
    grid-template-columns: 1fr;
    height: 100vh;
    width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
}

/* Header */
.header {
    grid-column: 1 / -1;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-select {
    padding: 8px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.project-select:hover {
    border-color: var(--primary);
}

.project-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-small {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.view-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.view-tabs-left {
    display: flex;
    gap: 10px;
}

.view-tabs-right {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.view-container {
    display: none;
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.view-container.active {
    display: block;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    height: 100%;
}

/* Team Board */
.team-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    height: 100%;
}

.team-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 280px;
}

.team-column-header {
    padding: 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-column-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-column-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    min-height: 200px;
}

.kanban-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-column-header {
    padding: 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.task-count {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.kanban-column-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    min-height: 200px;
}

.task-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--primary);
}

.task-card:active {
    cursor: grabbing;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.task-card-title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.task-card-priority {
    font-size: 12px;
    margin-left: 5px;
}

.task-card-body {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.task-card-assigned {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-card-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.task-card-dates {
    font-size: 10px;
}

/* Gantt Chart */
.gantt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.gantt-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gantt-days-display {
    min-width: 80px;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

.gantt-container {
    overflow: auto;
    height: calc(100% - 60px);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.gantt-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

.gantt-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

.gantt-task-header {
    width: 300px;
    min-width: 300px;
    padding: 15px;
    font-weight: 600;
    border-right: 1px solid var(--border);
    background: #000;
    color: #fff;
    text-align: left;
}

.gantt-progress-header {
    width: 100px;
    min-width: 100px;
    padding: 15px;
    font-weight: 600;
    border-right: 1px solid var(--border);
    background: #000;
    color: #fff;
    text-align: center;
}

.gantt-timeline-header {
    background: #000;
    color: #fff;
    border-bottom: 1px solid var(--border);
}

.gantt-date-header {
    padding: 10px 5px;
    text-align: center;
    font-size: 11px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #000;
    color: #fff;
    font-weight: 500;
}

.gantt-task-row {
    border-bottom: 1px solid var(--border);
    min-height: 60px;
}

.gantt-task-row:hover {
    background: var(--bg-tertiary);
}

.gantt-task-cell {
    width: 300px;
    min-width: 300px;
    padding: 15px;
    font-weight: 500;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gantt-task-name-cell {
    width: 300px;
    min-width: 300px;
    padding: 10px 15px;
    font-weight: 500;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.gantt-parent-row .gantt-task-name-cell {
    background: var(--bg-tertiary);
    font-weight: 700;
    color: var(--text-primary);
}

.gantt-subtask-row .gantt-task-name-cell {
    background: var(--bg-secondary);
    font-weight: 400;
    color: var(--text-secondary);
}

.gantt-progress-cell {
    width: 100px;
    min-width: 100px;
    padding: 10px;
    font-weight: 500;
    border-right: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.gantt-parent-row .gantt-progress-cell {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.gantt-subtask-row .gantt-progress-cell {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.gantt-spacing-row {
    height: 10px;
    background: transparent;
}

.gantt-spacing-row td {
    border: none;
    padding: 0;
    height: 10px;
}

.gantt-day-cell {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    height: 100%;
    padding: 0;
    border-right: 1px solid var(--border);
    background: var(--bg-secondary);
    position: relative;
    vertical-align: middle;
}

.gantt-parent-row .gantt-day-cell {
    background: var(--bg-tertiary);
}

.gantt-subtask-row .gantt-day-cell {
    background: var(--bg-secondary);
}

.gantt-bar-container {
    position: absolute;
    left: 0;
    top: 5px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gantt-bar-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 6;
}

.gantt-bar-completed {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transition: width 0.3s ease;
}

.gantt-bar-remaining {
    position: absolute;
    top: 0;
    height: 100%;
}

/* Legacy gantt-bar styles kept for compatibility, but new structure uses gantt-bar-container */
.gantt-bar {
    position: absolute;
    top: 10px;
    left: 0;
    height: 30px;
    min-height: 30px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gantt-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 6;
}

.gantt-empty-message {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* List View */
.list-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.list-search-container {
    flex: 1;
}

.list-search-input {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.list-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.list-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-sort-select {
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.list-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.list-view-body {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.list-table thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.list-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.list-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.list-table tbody tr {
    transition: all 0.2s;
    cursor: pointer;
}

.list-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.list-table tbody tr:last-child td {
    border-bottom: none;
}

.list-col-actions {
    width: 80px;
    text-align: center;
}

.list-col-name {
    min-width: 250px;
    max-width: 400px;
}

.list-col-status {
    width: 120px;
}

.list-col-priority {
    width: 100px;
}

.list-col-assigned {
    width: 150px;
}

.list-col-dates {
    width: 180px;
    font-size: 12px;
    color: var(--text-secondary);
}

.list-editable {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    transition: all 0.2s;
    cursor: text;
}

.list-editable:hover {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

.list-editable:focus {
    outline: none;
    background: var(--bg-tertiary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.list-editable-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.list-editable-select:hover {
    border-color: var(--primary);
}

.list-editable-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.list-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-status-todo {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.list-status-in-progress {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.list-status-review {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.list-status-done {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.list-priority-badge {
    font-size: 16px;
}

.list-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
    margin: 0 2px;
}

.list-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.list-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.empty-state.hidden {
    display: none;
}

.empty-state-content {
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-input {
    flex: 1;
}

/* Users List */
.users-list {
    margin-top: 20px;
}

.user-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item-name {
    font-weight: 500;
}

.user-item-actions {
    display: flex;
    gap: 10px;
}

/* Drag and Drop */
.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drag-over {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

/* Project Wizard */
.wizard-modal-content {
    max-width: 800px;
    width: 95%;
}

.wizard-container {
    padding: 20px;
    min-height: 400px;
}

.wizard-step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.wizard-step-indicators::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    margin-bottom: 8px;
}

.wizard-step-indicator.active .wizard-step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.wizard-step-indicator.completed .wizard-step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.wizard-step-indicator.completed .wizard-step-number::after {
    content: '✓';
    font-size: 20px;
}

.wizard-step-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.wizard-step-indicator.active .wizard-step-label {
    color: var(--text-primary);
    font-weight: 500;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-primary);
}

.wizard-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.wizard-users-list {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.wizard-user-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.wizard-user-name {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.wizard-user-name:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.wizard-tasks-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.wizard-task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.wizard-task-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.wizard-task-info {
    flex: 1;
}

.wizard-task-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wizard-task-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.wizard-task-priority {
    font-size: 16px;
}

.wizard-task-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.wizard-task-category {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.wizard-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-summary {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--border);
}

.wizard-summary::-webkit-scrollbar {
    width: 8px;
}

.wizard-summary::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.wizard-summary::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.wizard-summary::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.wizard-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.wizard-summary-section {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.wizard-summary-col {
    margin-bottom: 0;
}

.wizard-summary-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.wizard-summary-section p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.wizard-summary-section p strong {
    color: var(--text-primary);
}

.wizard-summary-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--border);
}

.wizard-summary-section ul::-webkit-scrollbar {
    width: 6px;
}

.wizard-summary-section ul::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.wizard-summary-section ul::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.wizard-summary-section ul::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.wizard-summary-section ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-summary-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.wizard-warning-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    border-radius: 8px;
}

.wizard-warning-box h4 {
    color: var(--danger);
    margin-bottom: 12px;
    font-size: 16px;
}

.wizard-warning-box p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.wizard-warning-box p strong {
    color: var(--danger);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}
