/* Wizard Styles */
.wizard-steps {
    list-style: none;
    padding: 0;
}

.wizard-step {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    color: #6c757d;
}

.wizard-step:hover {
    background-color: #f8f9fa;
}

.wizard-step.active {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
    font-weight: 500;
}

.wizard-step.completed {
    background-color: #e8f5e8;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.wizard-step.completed i {
    color: #4caf50;
}

.wizard-step.active i {
    color: #2196f3;
}

/* Tree Styles */
.tree-level {
    border-left: 2px solid #e9ecef;
    position: relative;
}

.tree-level:before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e9ecef 0%, transparent 100%);
}

.tree-node {
    position: relative;
    transition: all 0.2s ease;
}

.tree-node:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tree-node:before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: #e9ecef;
}

/* Icon Picker */
.icon-picker-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    transition: all 0.2s ease;
}

.icon-picker-btn:hover {
    transform: scale(1.1);
}

.icon-picker-btn.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Form Enhancements */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-select:focus,
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Modal Enhancements */
.modal-xl {
    max-width: 1200px;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
        margin: 0 auto;
    }

    .tree-level {
        margin-left: 0 !important;
    }

    .wizard-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .wizard-step {
        flex: 0 0 auto;
        margin-right: 8px;
        margin-bottom: 0;
        white-space: nowrap;
    }
}

/* Loading and Empty States */
.text-center.py-5 {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Badges */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Cards */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-group-sm > .btn,
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Alerts */
.alert {
    border: 0;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}