/* Talivio Technology - Modern Backend Styles */

/* Enhanced CSS Variables for Better Organization */
:root {
  /* Talivio Brand Colors - Primary Palette */
  --talivio-primary: #0ea5e9;
  --talivio-secondary: #0284c7;
  --talivio-accent: #38bdf8;
  --talivio-success: #10b981;
  --talivio-warning: #f59e0b;
  --talivio-error: #ef4444;

  /* Extended Color Palette */
  --talivio-50: #f0f9ff;
  --talivio-100: #e0f2fe;
  --talivio-200: #bae6fd;
  --talivio-300: #7dd3fc;
  --talivio-400: #38bdf8;
  --talivio-500: #0ea5e9;
  --talivio-600: #0284c7;
  --talivio-700: #0369a1;
  --talivio-800: #075985;
  --talivio-900: #0c4a6e;
  --talivio-950: #082f49;

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

  /* Dark Mode Glass Effects */
  --glass-bg-dark: rgba(0, 0, 0, 0.2);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --glass-shadow-dark: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-primary: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-secondary: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius Scale */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadow Scale */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transition Timing */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Dark Mode Variables */
.dark {
  --glass-bg: var(--glass-bg-dark);
  --glass-border: var(--glass-border-dark);
  --glass-shadow: var(--glass-shadow-dark);
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-200deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--talivio-primary), 0 0 10px var(--talivio-primary), 0 0 15px var(--talivio-primary);
    }
    50% {
        box-shadow: 0 0 10px var(--talivio-primary), 0 0 20px var(--talivio-primary), 0 0 30px var(--talivio-primary);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

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

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

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

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

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.animate-shimmer {
    animation: shimmer 2s infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

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

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
}

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

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

.animate-zoom-in {
    animation: zoomIn 0.5s ease-out;
}

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

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

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

.animate-wiggle {
    animation: wiggle 1s ease-in-out;
}

/* Staggered animations */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

.animate-stagger-6 {
    animation-delay: 0.6s;
}

.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Enhanced Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    transform: translateY(-2px);
}

/* Dark mode glassmorphism */
.dark .glassmorphism {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glassmorphism:hover {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Modern Glass Variants */
.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
}

.glass-medium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
}

.glass-heavy {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.4);
}

/* Dark mode glass variants */
.dark .glass-light {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .glass-medium {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-heavy {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Blob Animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Enhanced Dark Mode Smooth Transitions */
:root {
    color-scheme: light dark;

    /* Primary Brand Colors */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    --primary-950: #082f49;

    /* Talivio Brand Colors - Same as Primary */
    --talivio-50: #f0f9ff;
    --talivio-100: #e0f2fe;
    --talivio-200: #bae6fd;
    --talivio-300: #7dd3fc;
    --talivio-400: #38bdf8;
    --talivio-500: #0ea5e9;
    --talivio-600: #0284c7;
    --talivio-700: #0369a1;
    --talivio-800: #075985;
    --talivio-900: #0c4a6e;
    --talivio-950: #082f49;

    --talivio-primary: #0ea5e9;
    --talivio-secondary: #0284c7;
    --talivio-accent: #38bdf8;
    --talivio-success: #10b981;
    --talivio-warning: #f59e0b;
    --talivio-error: #ef4444;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Light Mode Colors - Clean & Modern */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --text-quaternary: #9ca3af;
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    --shadow-primary: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-secondary: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-tertiary: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark {
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Dark Mode Colors - Clean & Modern */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-tertiary: #9ca3af;
    --text-quaternary: #6b7280;
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --shadow-primary: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-secondary: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-tertiary: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Prevent FOUC and smooth transitions */
html {
    visibility: visible;
    opacity: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *:before,
html.theme-transitioning *:after {
    transition: all 0.3s ease !important;
    transition-delay: 0 !important;
}

/* Smooth transitions for theme-related elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent dark mode flicker */
html.dark {
    background: #111827;
    color-scheme: dark;
}

/* Prevent light mode flicker */
html:not(.dark) {
    background: #ffffff;
    color-scheme: light;
}

/* Override for elements that shouldn't have transition */
.no-transition,
.no-transition * {
    transition: none !important;
}

/* Enhanced transitions for theme-related elements */
.bg-white,
.dark\:bg-gray-900,
.dark\:bg-gray-800,
.dark\:bg-gray-700,
.text-gray-900,
.dark\:text-white,
.dark\:text-gray-300,
.dark\:text-gray-400 {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure dark mode classes work properly */
.dark .dark\:bg-gray-900 {
    background-color: #111827;
}

.dark .dark\:bg-gray-800 {
    background-color: #1f2937;
}

.dark .dark\:bg-gray-700 {
    background-color: #374151;
}

.dark .dark\:text-white {
    color: #ffffff;
}

.dark .dark\:text-gray-300 {
    color: #d1d5db;
}

.dark .dark\:text-gray-400 {
    color: #9ca3af;
}

/* Modern Glassmorphism */
.modern-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.dark .modern-glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern Card Styles */
.modern-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.dark .modern-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Modern Button Styles */
.modern-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transform: translateY(0);
    box-shadow: var(--shadow-secondary);
    transition: all 0.3s ease;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-tertiary);
}

/* Modern Input Styles */
.modern-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .modern-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.modern-input:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-secondary);
}

.modern-input::placeholder {
    color: var(--text-tertiary);
}

/* Modern Status Indicators */
.status-indicator {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--talivio-success);
}

.status-indicator.offline {
    background: var(--talivio-error);
}

.status-indicator.warning {
    background: var(--talivio-warning);
}

.status-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Modern Toast Notifications */
.modern-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.modern-toast.show {
    transform: translateX(0);
}

.modern-toast.success {
    border-left: 4px solid var(--talivio-success);
}

.modern-toast.error {
    border-left: 4px solid var(--talivio-error);
}

.modern-toast.warning {
    border-left: 4px solid var(--talivio-warning);
}

.modern-toast.info {
    border-left: 4px solid var(--talivio-primary);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #374151;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Default scrollbar for dark mode */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--talivio-primary), var(--talivio-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5, #7c3aed);
}

/* Modern Scrollbar */
.modern-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.modern-scrollbar::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 4px;
}

.modern-scrollbar::-webkit-scrollbar-thumb {
    background: var(--talivio-primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modern-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--talivio-secondary);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Modern Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

/* Modern Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Modern Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--talivio-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modern Pulse Animation */
.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Modern Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Status Indicators */
.status-online {
    width: 12px;
    height: 12px;
    background: var(--talivio-success);
    border-radius: 50%;
    position: relative;
}

.status-online::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--talivio-success);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-offline {
    width: 12px;
    height: 12px;
    background: var(--talivio-error);
    border-radius: 50%;
    position: relative;
}

.status-offline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--talivio-error);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Modern Input Focus */
.custom-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-input:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Modern Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--talivio-primary), var(--talivio-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Modern Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Modern Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

/* Modern Pricing Cards */
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--talivio-primary);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Modern Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, var(--talivio-primary), var(--talivio-secondary));
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Modern Form Styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-secondary);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

/* Header Scroll Behavior */
header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color, backdrop-filter, box-shadow;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark header.scrolled {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Ensure header content is always visible */
header nav {
    position: relative;
    z-index: 10;
}

header .container {
    position: relative;
    z-index: 10;
}

/* Modern Responsive Design */
@media (max-width: 768px) {
    .glassmorphism {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .animate-blob {
        animation: none;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .modern-card {
        margin-bottom: 1rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .modern-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .modern-card {
        padding: 1rem;
    }
}

/* Modern Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .glassmorphism {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .custom-input,
    .form-input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

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

    .animate-blob,
    .animate-pulse-slow {
        animation: none;
    }
}

/* Modern Focus Visible */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--talivio-primary);
    outline-offset: 2px;
}

.form-input:focus-visible {
    outline: 2px solid var(--talivio-primary);
    outline-offset: 2px;
}

/* Modern Print Styles */
@media print {
    .glassmorphism {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .btn-primary,
    .btn-secondary {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }

    .animate-blob {
        display: none;
    }
}

/* Modern High Contrast Mode */
@media (prefers-contrast: high) {
    .glassmorphism {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }

    .btn-primary {
        background: white;
        color: black;
        border: 2px solid black;
    }

    .btn-secondary {
        background: black;
        color: white;
        border: 2px solid white;
    }
}

/* Modern Hero Section Styles */
.hero-fullscreen {
    height: calc(100vh - 5rem);
    min-height: calc(600px - 5rem);
}

@media (max-height: 600px) {
    .hero-fullscreen {
        min-height: calc(500px - 5rem);
    }
}

.section-fullscreen-minus-header {
    height: calc(100vh - 5rem);
    min-height: calc(600px - 5rem);
}

main {
    padding-top: 0;
}

section.h-screen {
    height: calc(100vh - 5rem) !important;
    min-height: calc(600px - 5rem) !important;
}

@media (max-width: 768px) {
    section.h-screen {
        height: calc(100vh - 5rem) !important;
        min-height: calc(500px - 5rem) !important;
    }
}

/* Modern Pricing Toggle Styles */
.pricing-toggle-btn {
    color: #6b7280;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-toggle-btn.active {
    background: linear-gradient(to right, var(--talivio-primary), var(--talivio-secondary));
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.pricing-toggle-btn:not(.active):hover {
    color: var(--talivio-primary);
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.pricing-toggle-btn.active .shine-effect {
    transform: translateX(100%);
    transition: transform 1s ease;
}

.pricing-toggle-btn i {
    color: var(--talivio-primary);
    transition: color 0.3s ease;
}

.pricing-toggle-btn.active i {
    color: white;
}

/* Modern Pricing Content Styles */
.pricing-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity;
}

.pricing-description.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pricing-content {
    margin-bottom: 0;
}

/* Modern Card Hover Effects */
.group:hover .shadow-xl {
    box-shadow: 0 12px 32px 0 rgba(37, 99, 235, 0.12), 0 1.5px 6px 0 rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Modern Shadow Utilities */
.shadow-4xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hover\:shadow-4xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Modern Glass Effect Enhancement */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Modern Gradient Text Utilities */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Modern Product Card Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:rotate-3 {
    transform: rotate(3deg);
}

.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Modern Border Glow Effects */
.shadow-talivio-500\/20 {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.shadow-green-500\/20 {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.shadow-purple-500\/20 {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.shadow-indigo-500\/20 {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.shadow-orange-500\/20 {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
}

.shadow-yellow-500\/20 {
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.2);
}

.shadow-red-500\/20 {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

/* Modern Button Shine Effect */
.group-btn:hover .group-hover\:translate-x-full {
    transform: translateX(100%);
}

/* Modern Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Responsive Adjustments */
@media (max-width: 768px) {
    .w-\[420px\] { width: 320px; }
    .h-\[650px\] { height: 580px; }
    .text-2xl { font-size: 1.5rem; }
    .text-3xl { font-size: 1.875rem; }
    .p-6 { padding: 1rem; }
    .min-h-\[60px\] { min-height: 50px; }
    .min-h-\[90px\] { min-height: 70px; }
    .relative.h-\[720px\] { height: 620px; }
}

@media (max-width: 480px) {
    .w-\[420px\] { width: 280px; }
    .h-\[650px\] { height: 520px; }
    .p-6 { padding: 0.75rem; }
    .text-2xl { font-size: 1.25rem; }
    .text-3xl { font-size: 1.5rem; }
    .min-h-\[60px\] { min-height: 40px; }
    .min-h-\[90px\] { min-height: 60px; }
    .relative.h-\[720px\] { height: 560px; }
    .translate-x-40 { transform: translateX(8rem); }
    .translate-x-80 { transform: translateX(12rem); }
    .-translate-x-40 { transform: translateX(-8rem); }
    .-translate-x-80 { transform: translateX(-12rem); }
}

/* Modern Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-switcher.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.language-switcher .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--talivio-primary);
}

.language-switcher .dropdown-item.active {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    color: white;
}

.language-switcher .dropdown-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Modern Theme Toggle Styles */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.theme-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.theme-toggle .slider:before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.theme-toggle input:checked + .slider {
    background: var(--glass-bg);
}

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

.theme-toggle .slider:after {
    content: '☀️';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 12px;
    transition: all 0.3s ease;
}

.theme-toggle input:checked + .slider:after {
    content: '🌙';
    left: 38px;
}

/* Modern Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--talivio-primary);
}

.mobile-menu .nav-link.active {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    color: white;
}

.mobile-menu .nav-link i {
    margin-right: 16px;
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu .close-btn:hover {
    color: var(--talivio-primary);
}

/* Modern Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Modern Newsletter Styles */
.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.newsletter-form button:hover::before {
    left: 100%;
}

.newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Modern Form Validation Styles */
.form-error {
    border-color: var(--talivio-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-error-message {
    color: var(--talivio-error);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error-message i {
    font-size: 14px;
}

/* Modern Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: var(--glass-shadow);
}

.loading-content .spinner {
    margin-bottom: 16px;
}

.loading-content h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.loading-content p {
    opacity: 0.8;
}

/* Modern Success States */
.success-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.success-overlay.show {
    transform: translateX(0);
}

.success-overlay.success {
    border-left: 4px solid var(--talivio-success);
}

.success-overlay.error {
    border-left: 4px solid var(--talivio-error);
}

.success-overlay.warning {
    border-left: 4px solid var(--talivio-warning);
}

.success-overlay.info {
    border-left: 4px solid var(--talivio-primary);
}

/* Modern Responsive Utilities */
@media (max-width: 768px) {
    .mobile-menu {
        width: 100%;
    }

    .language-switcher .dropdown-menu {
        right: -20px;
        min-width: 180px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }

    .language-switcher .dropdown-menu {
        right: -40px;
        min-width: 160px;
    }

    .back-to-top {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Modern Admin Panel Styles */
.admin-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.admin-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-tertiary);
}

.admin-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.admin-button {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transform: translateY(0);
    box-shadow: var(--shadow-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.admin-button:hover::before {
    left: 100%;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-tertiary);
}

.admin-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-input:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-secondary);
}

.admin-input::placeholder {
    color: var(--text-tertiary);
}

.admin-table {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.admin-table th {
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.admin-table tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

.admin-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-status.online {
    background: rgba(16, 185, 129, 0.2);
    color: var(--talivio-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-status.offline {
    background: rgba(239, 68, 68, 0.2);
    color: var(--talivio-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--talivio-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-status.info {
    background: rgba(37, 99, 235, 0.2);
    color: var(--talivio-primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Modern Sidebar Styles */
.admin-sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.admin-sidebar .nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--talivio-primary);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Modern Dashboard Stats */
.dashboard-stat {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.dashboard-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--talivio-primary);
    margin-bottom: 8px;
}

.dashboard-stat .stat-label {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.dashboard-stat .stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* Modern Form Groups */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.admin-form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-form-group .form-control:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-secondary);
}

.admin-form-group .form-control::placeholder {
    color: var(--text-tertiary);
}

/* Modern Alert Styles */
.admin-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--talivio-success);
}

.admin-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--talivio-error);
}

.admin-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--talivio-warning);
}

.admin-alert.info {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--talivio-primary);
}

/* Modern Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.admin-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-pagination .page-link:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--talivio-primary);
    color: var(--talivio-primary);
}

.admin-pagination .page-link.active {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    border-color: var(--talivio-primary);
    color: white;
}

/* Modern Loading States */
.admin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-primary);
}

.admin-loading .spinner {
    margin-right: 12px;
}

/* Modern Empty States */
.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-primary);
    opacity: 0.7;
}

.admin-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--talivio-primary);
}

.admin-empty h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-empty p {
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Modern Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-panel {
        margin: 0 8px;
    }

    .dashboard-stat {
        margin-bottom: 16px;
    }

    .admin-table {
        overflow-x: auto;
    }
}

/* Modern Form Groups */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.admin-form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-form-group .form-control:focus {
    outline: none;
    border-color: var(--talivio-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-secondary);
}

.admin-form-group .form-control::placeholder {
    color: var(--text-tertiary);
}

/* Modern Alert Styles */
.admin-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--talivio-success);
}

.admin-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--talivio-error);
}

.admin-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--talivio-warning);
}

.admin-alert.info {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--talivio-primary);
}

/* Modern Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.admin-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-pagination .page-link:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--talivio-primary);
    color: var(--talivio-primary);
}

.admin-pagination .page-link.active {
    background: linear-gradient(135deg, var(--talivio-primary), var(--talivio-secondary));
    border-color: var(--talivio-primary);
    color: white;
}

/* Modern Loading States */
.admin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-primary);
}

.admin-loading .spinner {
    margin-right: 12px;
}

/* Modern Empty States */
.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-primary);
    opacity: 0.7;
}

.admin-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--talivio-primary);
}

.admin-empty h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-empty p {
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Modern Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-panel {
        margin: 0 8px;
    }

    .dashboard-stat {
        margin-bottom: 16px;
    }

    .admin-table {
        overflow-x: auto;
    }
}
