/**
 * Premium Design Enhancements
 * Modern, professional visual improvements
 */

/* ============================================
   PREMIUM GRADIENTS
   ============================================ */

.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.gradient-ocean {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.gradient-sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-forest {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.gradient-royal {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

/* Animated Gradients */
.gradient-animated {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   MODERN SHADOWS
   ============================================ */

.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07),
        0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1),
        0 15px 30px -3px rgba(0, 0, 0, 0.08);
}

.shadow-hard {
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.15),
        0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

.shadow-colored-blue {
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.4);
}

.shadow-colored-green {
    box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.4);
}

.shadow-colored-purple {
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.4);
}

.shadow-inner-glow {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06),
        0 0 20px rgba(59, 130, 246, 0.1);
}

/* ============================================
   PREMIUM BORDERS
   ============================================ */

.border-gradient {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: inherit;
    z-index: -1;
}

.border-glow {
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.2);
}

/* ============================================
   MODERN CARDS
   ============================================ */

.card-premium {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-premium:hover::before {
    transform: scaleX(1);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

/* ============================================
   MODERN BUTTONS
   ============================================ */

.btn-premium {
    position: relative;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-premium:active {
    transform: translateY(0);
}

/* ============================================
   GLASSMORPHISM ENHANCED
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   NEUMORPHISM
   ============================================ */

.neuro-card {
    background: #e0e5ec;
    border-radius: 1rem;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
        -9px -9px 16px rgba(255, 255, 255, 0.5);
}

.neuro-card-inset {
    background: #e0e5ec;
    border-radius: 1rem;
    box-shadow: inset 6px 6px 12px rgba(163, 177, 198, 0.4),
        inset -6px -6px 12px rgba(255, 255, 255, 0.5);
}

.neuro-button {
    background: #e0e5ec;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.neuro-button:hover {
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.neuro-button:active {
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

/* ============================================
   MODERN BADGES
   ============================================ */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.badge-modern-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid currentColor;
    position: relative;
    overflow: hidden;
}

.badge-modern-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.1;
    transition: left 0.3s ease;
}

.badge-modern-outline:hover::before {
    left: 0;
}

/* ============================================
   FLOATING ANIMATIONS
   ============================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.float-animation-slow {
    animation: float-slow 6s ease-in-out infinite;
}

/* ============================================
   MODERN DIVIDERS
   ============================================ */

.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 2rem 0;
}

.divider-dots {
    text-align: center;
    margin: 2rem 0;
}

.divider-dots::before {
    content: '• • •';
    color: #cbd5e1;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

/* ============================================
   PREMIUM TOOLTIPS
   ============================================ */

.tooltip-premium {
    position: relative;
}

.tooltip-premium::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-premium:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   MODERN PROGRESS BARS
   ============================================ */

.progress-modern {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-modern-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-modern-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   PREMIUM INPUTS
   ============================================ */

.input-premium {
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-premium:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
}

.input-premium::placeholder {
    color: #9ca3af;
}

/* ============================================
   MODERN CHECKBOXES & RADIOS
   ============================================ */

.checkbox-modern {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-modern:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-modern:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* ============================================
   PREMIUM ANIMATIONS
   ============================================ */

@keyframes slide-in-bottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scale-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate-in {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.animate-slide-in-bottom {
    animation: slide-in-bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale-in {
    animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-rotate-in {
    animation: rotate-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   MODERN HOVER EFFECTS
   ============================================ */

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3);
}

.hover-lift-rotate:hover {
    transform: translateY(-8px) rotate(2deg);
}

.hover-bounce:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}