.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.slider-slide {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.slider-slide.active {
    display: block;
    opacity: 1;
}

.slider-slide.prev {
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slider-slide.next {
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    pointer-events: auto;
    transition: all var(--transition-fast);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.slider-prev svg,
.slider-next svg {
    width: 24px;
    height: 24px;
}

.slider-pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.slider-dot:hover {
    border-color: var(--primary);
}

.tabs-container {
    margin-bottom: 2rem;
}

.tabs-list {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: var(--z-toast);
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition-base);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-exit {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-success .toast-icon svg { stroke: var(--success); }
.toast-error .toast-icon svg { stroke: var(--danger); }
.toast-warning .toast-icon svg { stroke: var(--warning); }
.toast-info .toast-icon svg { stroke: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.toast-action {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toast-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.toast-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--danger);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--danger);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dragging {
    cursor: grabbing !important;
    user-select: none;
}

.drop-zone {
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(220, 38, 38, 0.05);
}

.drop-zone-icon {
    width: 60px;
    height: 60px;
    stroke: var(--text-tertiary);
}

.drop-zone-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.drop-zone-text strong {
    color: var(--primary);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.accordion {
    margin-bottom: 1rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-content-inner {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chip-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.chip-close:hover {
    background: var(--danger);
    color: white;
}

.chip-close svg {
    width: 12px;
    height: 12px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    stroke: var(--text-muted);
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
}

.step-indicator {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.step.active .step-indicator {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.step-label {
    margin-left: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

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

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

.step.completed + .step-line,
.step.completed .step-line {
    background: var(--success);
}

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox input,
.radio input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox span,
.radio span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkbox.checked span,
.radio.checked span {
    color: var(--text-primary);
}

.progress-steps {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background: var(--success);
}

.progress-step-number {
    width: 30px;
    height: 30px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

.progress-step.active .progress-step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.progress-step.completed .progress-step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

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

@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .stepper {
        flex-direction: column;
        align-items: flex-start;
    }

    .step {
        width: 100%;
    }

    .step-line {
        display: none;
    }

    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-step::after {
        display: none;
    }
}
