/* ILJAZI SOLUTIONS Modern Styles */

/* Enhanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate-in {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gradient-x {
    0%, 100% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes gradient-y {
    0%, 100% {
        transform: translateY(0%);
    }
    50% {
        transform: translateY(100%);
    }
}

@keyframes gradient-xy {
    0%, 100% {
        transform: translate(0%, 0%);
    }
    25% {
        transform: translate(100%, 0%);
    }
    50% {
        transform: translate(100%, 100%);
    }
    75% {
        transform: translate(0%, 100%);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.8);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern Animation Classes */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out both;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out both;
}

.animate-slide-down {
    animation: slide-down 0.6s ease-out both;
}

.animate-slide-left {
    animation: slide-left 0.6s ease-out both;
}

.animate-slide-right {
    animation: slide-right 0.6s ease-out both;
}

.animate-scale-in {
    animation: scale-in 0.5s ease-out both;
}

.animate-rotate-in {
    animation: rotate-in 0.8s ease-out both;
}

.animate-bounce-in {
    animation: bounce-in 0.6s ease-out both;
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 15s ease infinite;
}

.animate-gradient-y {
    background-size: 200% 200%;
    animation: gradient-y 15s ease infinite;
}

.animate-gradient-xy {
    background-size: 400% 400%;
    animation: gradient-xy 15s ease infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

/* Modern Flash Message Styles */
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    color: #92400e;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

/* Modern Gradient Styles */
.gradient-modern-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-modern-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-modern-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-modern-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-radial {
    background: radial-gradient(circle at center, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
}

.gradient-conic {
    background: conic-gradient(from 180deg at 50% 50%, #6366f1, #ec4899, #06b6d4, #10b981, #f59e0b, #6366f1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 90, 60, 0.4);
}

/* Modern Button Styles */
.btn-modern {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-modern:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-modern:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-modern::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.6s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-glow {
    position: relative;
    background: linear-gradient(45deg, #6366f1, #ec4899, #06b6d4);
    background-size: 300% 300%;
    animation: gradient-x 3s ease infinite;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
}

/* Modern Card Styles */
.card-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card-modern:hover::before {
    transform: scaleX(1);
}

.card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-neon {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.card-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #6366f1, #ec4899, #06b6d4, #10b981);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.1);
}

.form-label {
    position: relative;
    display: inline-block;
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B5A3C;
    transition: width 0.3s ease;
}

.form-input:focus + .form-label::after {
    width: 100%;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5A3C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-completed {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5A3C, #D4B5A0);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .animate-fade-in-up,
    .animate-slide-up,
    .animate-scale-in {
        animation-duration: 0.5s;
    }
    
    .card-modern:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .btn-modern:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    /* Reduce motion for mobile */
    .animate-float {
        animation-duration: 8s;
    }
}

@media (max-width: 480px) {
    .card-modern {
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .btn-modern {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card-spa {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .alert-success {
        background-color: #064e3b;
        border-color: #059669;
        color: #6ee7b7;
    }
    
    .alert-error {
        background-color: #7f1d1d;
        border-color: #dc2626;
        color: #fca5a5;
    }
    
    .alert-info {
        background-color: #1e3a8a;
        border-color: #2563eb;
        color: #93c5fd;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card-spa {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .btn-spa {
        background: #8B5A3C !important;
        color: white !important;
    }
}

/* Accessibility Enhancements */
.focus-visible:focus {
    outline: 2px solid #8B5A3C;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-spa {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .card-spa {
        border: 2px solid #000;
    }
}

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

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #db2777);
    background-clip: content-box;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 rgba(255, 255, 255, 0.1);
}

/* Enhanced Touch Device Optimizations */
@media (pointer: coarse) {
    .btn-modern,
    button,
    .form-input {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .card-modern {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    /* Larger tap targets */
    a, button, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Modern Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-noise {
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.3) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(255, 255, 255, 0.3) 2px, transparent 0);
    background-size: 100px 100px;
}

.frosted-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.neon-glow {
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3),
        0 0 60px rgba(99, 102, 241, 0.1);
}

.morphism {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 
        20px 20px 60px #d1d1d1,
        -20px -20px 60px #ffffff;
}

.morphism-dark {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 
        20px 20px 60px #151515,
        -20px -20px 60px #2f2f2f;
}
