/**
 * UI/UX Enhancements for Kebria Portfolio
 * Modern 2025 Design Trends
 */

/* Base - ensure content is always visible by default */

/* ========== 1. Glass Morphism ========== */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Navigation */
.nav {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .nav {
    background: rgba(0, 0, 0, 0.72) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .nav.scrolled {
    background: rgba(0, 0, 0, 0.88) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Glass Cards */
.highlight-card,
.feature,
.contact-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .highlight-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .contact-card {
    background: rgba(44, 44, 46, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ========== 2. Scroll Progress Indicator ========== */

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 10000;
    background: transparent;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #667eea 0%,
        #764ba2 50%,
        #667eea 100%);
    background-size: 200% 100%;
    animation: gradient-shift 2s ease infinite;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transition: width 0.1s ease-out;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== 3. Toast Notifications ========== */

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

[dir="rtl"] .toast-container {
    left: auto;
    right: 24px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[dir="rtl"] .toast {
    transform: translateX(120%);
}

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

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

[dir="rtl"] .toast.hide {
    transform: translateX(120%);
}

[data-theme="dark"] .toast {
    background: rgba(44, 44, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
    font-size: 0.9375rem;
}

.toast-message {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 0 0 0 12px;
    transition: width linear;
}

[dir="rtl"] .toast-progress {
    left: auto;
    right: 0;
    border-radius: 0 0 12px 0;
}

/* Toast Types */
.toast.toast-success {
    border-right: 4px solid #34c759;
}

[dir="rtl"] .toast.toast-success {
    border-right: none;
    border-left: 4px solid #34c759;
}

.toast.toast-success .toast-icon {
    color: #34c759;
}

.toast.toast-error {
    border-right: 4px solid #ff3b30;
}

[dir="rtl"] .toast.toast-error {
    border-right: none;
    border-left: 4px solid #ff3b30;
}

.toast.toast-error .toast-icon {
    color: #ff3b30;
}

.toast.toast-warning {
    border-right: 4px solid #ff9500;
}

[dir="rtl"] .toast.toast-warning {
    border-right: none;
    border-left: 4px solid #ff9500;
}

.toast.toast-warning .toast-icon {
    color: #ff9500;
}

.toast.toast-info {
    border-right: 4px solid #007aff;
}

[dir="rtl"] .toast.toast-info {
    border-right: none;
    border-left: 4px solid #007aff;
}

.toast.toast-info .toast-icon {
    color: #007aff;
}

/* ========== 4. Micro-interactions & Animations ========== */

/* Hover Lift Effect */
.highlight-card,
.feature,
.contact-card,
.project-image,
.skill-item,
.tech-badge {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease !important;
}

.highlight-card:hover,
.feature:hover,
.contact-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15) !important;
}

[data-theme="dark"] .highlight-card:hover,
[data-theme="dark"] .feature:hover,
[data-theme="dark"] .contact-card:hover {
    box-shadow: 0 20px 40px rgba(124, 147, 255, 0.2) !important;
}

/* Button Ripple Effect */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after,
.btn-secondary:active::after {
    width: 300px;
    height: 300px;
}

/* Magnetic Button Effect */
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Stagger Animation for Cards - Safe approach without hiding */
.highlight-card.animate-in,
.feature.animate-in,
.contact-card.animate-in,
.skill-item.animate-in {
    animation: stagger-fade-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stagger-fade-in {
    from {
        opacity: 0.5;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon Bounce on Hover */
.highlight-icon,
.feature-icon,
.contact-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight-card:hover .highlight-icon,
.feature:hover .feature-icon,
.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes reveal-up {
    to {
        transform: translateY(0);
    }
}

/* Pulse Animation for CTA */
.btn-primary {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 24px rgba(102, 126, 234, 0.5);
    }
}

/* Nav Link Underline Animation */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Floating Animation for Hero */
.hero-content {
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== 5. Enhanced Focus Indicators ========== */

:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4),
                0 0 0 6px rgba(102, 126, 234, 0.1) !important;
    border-radius: 8px;
}

[data-theme="dark"] :focus-visible {
    box-shadow: 0 0 0 3px rgba(124, 147, 255, 0.5),
                0 0 0 6px rgba(124, 147, 255, 0.15) !important;
}

a:focus-visible,
button:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4),
                0 0 0 6px rgba(102, 126, 234, 0.1) !important;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

/* Skip Link Enhancement */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    text-decoration: none;
    z-index: 100001;
    transition: top 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.skip-link:focus {
    top: 0;
}

/* Focus Ring Animation */
@keyframes focus-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4),
                    0 0 0 6px rgba(102, 126, 234, 0.1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5),
                    0 0 0 8px rgba(102, 126, 234, 0.15);
    }
}

/* ========== 6. Enhanced Skeleton Loading ========== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-alt) 0%,
        var(--color-surface) 20%,
        var(--color-bg-alt) 40%,
        var(--color-bg-alt) 100%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.skeleton-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--color-border);
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.skeleton-title {
    height: 28px;
    width: 70%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-button {
    height: 44px;
    width: 140px;
    border-radius: 22px;
    margin-top: 16px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Content-Aware Skeleton */
.skeleton-project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-project-card .skeleton-badge {
    width: 100px;
    height: 24px;
    border-radius: 12px;
}

/* ========== 7. Multi-step Form Wizard ========== */

.multi-step-form {
    position: relative;
}

.form-steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border: 2px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.step-indicator.completed .step-number {
    background: #34c759;
    color: white;
    border-color: #34c759;
}

.step-indicator.completed .step-number::after {
    content: '✓';
    position: absolute;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

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

.step-indicator.completed .step-label {
    color: #34c759;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: var(--color-border);
    margin: 0 -20px;
    margin-top: -28px;
    position: relative;
    z-index: 1;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #34c759, #667eea);
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-connector.completed::after {
    width: 100%;
}

/* Form Step Content */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: step-slide-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes step-slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.btn-prev,
.btn-next {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-prev {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-border);
}

.btn-prev:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-light);
    color: var(--color-text);
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-prev:disabled,
.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== 8. Tilt Effect for Cards ========== */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card .tilt-inner {
    transition: transform 0.1s ease-out;
}

.tilt-card:hover .tilt-inner {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.tilt-card .tilt-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.tilt-card:hover .tilt-shine {
    opacity: 1;
}

/* ========== 9. Command Palette ========== */

.command-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.command-palette-overlay.active {
    opacity: 1;
    visibility: visible;
}

.command-palette {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

[data-theme="dark"] .command-palette {
    background: rgba(44, 44, 46, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.command-palette.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.command-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.command-search-icon {
    color: var(--color-text-light);
    width: 20px;
    height: 20px;
}

.command-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--color-text);
    outline: none;
}

.command-search input::placeholder {
    color: var(--color-text-light);
}

.command-shortcut {
    display: flex;
    gap: 4px;
}

.command-shortcut kbd {
    padding: 4px 8px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--color-text-light);
}

.command-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.command-group {
    padding: 8px 12px 4px;
}

.command-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.command-item:hover,
.command-item.selected {
    background: var(--color-bg-alt);
}

.command-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.command-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 8px;
    font-size: 1.125rem;
}

.command-item-content {
    flex: 1;
}

.command-item-title {
    font-weight: 500;
    color: var(--color-text);
}

.command-item-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.command-item-shortcut {
    display: flex;
    gap: 4px;
}

.command-item-shortcut kbd {
    padding: 2px 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.6875rem;
    color: var(--color-text-light);
}

.command-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.command-footer-hint {
    display: flex;
    align-items: center;
    gap: 16px;
}

.command-footer-hint span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 10. Optimistic UI States ========== */

.optimistic-pending {
    position: relative;
    pointer-events: none;
}

.optimistic-pending::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .optimistic-pending::after {
    background: rgba(0, 0, 0, 0.5);
}

.optimistic-success {
    animation: success-flash 0.6s ease;
}

@keyframes success-flash {
    0%, 100% { background-color: inherit; }
    50% { background-color: rgba(52, 199, 89, 0.2); }
}

.optimistic-error {
    animation: error-shake 0.4s ease;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Form Submission States */
.form-submitting {
    position: relative;
}

.form-submitting .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradient-move 1.5s ease infinite;
}

@keyframes gradient-move {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-submitting .btn-submit::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success State */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.form-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-success-message {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ========== Responsive Adjustments ========== */

@media (max-width: 768px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    [dir="rtl"] .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .command-palette {
        top: 10%;
        width: 95%;
        max-height: 80vh;
    }

    .form-steps-indicator {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .step-label {
        font-size: 0.6875rem;
        white-space: nowrap;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Reduced Motion ========== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-content {
        animation: none;
    }

    .btn-primary {
        animation: none;
    }
}
