@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
}

/* Gradient animations */
.gradient-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

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

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Light mode styles */
body.light-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .glass-dark {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .text-white {
    color: #1f2937 !important;
}

body.light-mode .text-purple-200 {
    color: #6b7280 !important;
}

body.light-mode .text-purple-300 {
    color: #4b5563 !important;
}

body.light-mode .text-purple-400 {
    color: #667eea !important;
}

body.light-mode .text-white\/70 {
    color: #374151 !important;
}

body.light-mode .text-white\/80 {
    color: #1f2937 !important;
}

body.light-mode .bg-white\/10 {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #e5e7eb;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom range slider */
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #4a5568;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    border: 1px solid #64748b;
}

/* Dark mode slider track - clearly visible */
input[type="range"]::-webkit-slider-track {
    background: #4a5568;
    border: 1px solid #64748b;
    border-radius: 10px;
    height: 8px;
}

input[type="range"]::-moz-range-track {
    background: #4a5568;
    border: 1px solid #64748b;
    border-radius: 10px;
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    margin-top: -7px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

/* Light mode slider track - clearly visible */
body.light-mode input[type="range"] {
    background: #cbd5e0;
    border: 1px solid #94a3b8;
}

body.light-mode input[type="range"]::-webkit-slider-track {
    background: #cbd5e0;
    border: 1px solid #94a3b8;
}

body.light-mode input[type="range"]::-moz-range-track {
    background: #cbd5e0;
    border: 1px solid #94a3b8;
}

/* Dropdown select styling - Dark mode */
select {
    color: #ffffff;
}

select option {
    background-color: #2d3748;
    color: #ffffff;
    padding: 8px;
}

/* Dropdown select styling - Light mode */
body.light-mode select {
    color: #1f2937;
}

body.light-mode select option {
    background-color: #ffffff;
    color: #1f2937;
}

/* Loading animation */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Custom checkbox */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 3px;
    top: -1px;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Tab animation */
.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress bar */
.progress-bar {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 10px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

/* Enterprise Badge */
.enterprise-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    }
}

/* Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Light mode footer */
body.light-mode footer {
    background: rgba(255, 255, 255, 0.5);
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .enterprise-badge {
        display: flex !important;
        margin-top: 0.5rem;
    }

    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
