/* Futuristic UI Styles */

/* Custom Scrollbar Styling - Futuristic Purple Theme */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) rgba(15, 23, 42, 0.3);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.3);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #A855F7 0%, #C084FC 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

*::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.3);
}

/* Hide scrollbar while keeping scroll functionality - CRITICAL: Must be at top */
.scrollbar-hide, .scrollbar-hide-inline {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.scrollbar-hide::-webkit-scrollbar, .scrollbar-hide-inline::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Keyframe Animations */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #8B5CF6, 0 0 10px #8B5CF6, 0 0 15px #8B5CF6; }
    50% { box-shadow: 0 0 10px #A855F7, 0 0 20px #A855F7, 0 0 30px #A855F7; }
}

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

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

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

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

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes neonFlicker {
    0%, 100% { text-shadow: 0 0 5px #8B5CF6, 0 0 10px #8B5CF6, 0 0 15px #8B5CF6; }
    25% { text-shadow: 0 0 2px #8B5CF6, 0 0 5px #8B5CF6, 0 0 8px #8B5CF6; }
    50% { text-shadow: 0 0 8px #A855F7, 0 0 15px #A855F7, 0 0 25px #A855F7; }
    75% { text-shadow: 0 0 3px #8B5CF6, 0 0 7px #8B5CF6, 0 0 12px #8B5CF6; }
}

@keyframes borderGlow {
    0%, 100% { border-color: #8B5CF6; box-shadow: 0 0 5px rgba(139, 92, 246, 0.5); }
    50% { border-color: #A855F7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.8); }
}

@keyframes success-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
}

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

/* Base Futuristic Styles */
.futuristic-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.futuristic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(192, 132, 252, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Futuristic Cards */
.futuristic-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInFromBottom 0.8s ease-out;
}

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

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

.futuristic-card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Futuristic Inputs */
.futuristic-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #E2E8F0;
    padding: 12px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.futuristic-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.1),
        0 0 10px rgba(139, 92, 246, 0.3);
    background: rgba(15, 23, 42, 0.8);
    animation: borderGlow 2s infinite;
}

.futuristic-input::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

/* Futuristic Buttons */
.futuristic-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.futuristic-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;
}

.futuristic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    animation: glow 1.5s infinite;
}

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

.futuristic-btn:active {
    transform: translateY(0);
}

/* Futuristic Text */
.futuristic-title {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-align: center;
}

.futuristic-subtitle {
    color: #94A3B8;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Futuristic Tabs */
.futuristic-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #94A3B8;
    padding: 8px 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.futuristic-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futuristic-tab:hover {
    border-color: rgba(139, 92, 246, 0.6);
    color: #E2E8F0;
    transform: translateY(-1px);
}

.futuristic-tab:hover::before {
    opacity: 1;
}

.futuristic-tab.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-color: #A855F7;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.futuristic-tab.active::before {
    opacity: 0;
}

/* Futuristic Table */
.futuristic-table {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInFromBottom 0.8s ease-out;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.futuristic-table::-webkit-scrollbar {
    display: none;
}

.futuristic-table thead {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.futuristic-table th {
    color: #E2E8F0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.futuristic-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: background-color 0.3s ease;
}

.futuristic-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

/* Loading Animation */
.futuristic-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: #8B5CF6;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error Messages */
.futuristic-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
    border-radius: 8px;
    padding: 12px 16px;
    animation: slideInFromTop 0.5s ease-out;
}

.futuristic-error {
    color: #F87171;
    border-radius: 8px;
    padding: 12px 16px;
    animation: slideInFromTop 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .futuristic-card {
        margin: 16px;
        animation: slideInFromBottom 0.6s ease-out;
    }
    
    .futuristic-title {
        font-size: 1.5rem;
    }
}

/* Particles Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Scrollable Tabs */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Smooth scrolling for tabs */
#userTabs {
    scroll-behavior: smooth;
}

/* Tab container improvements */
.tab-container {
    position: relative;
}

.tab-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.8));
    pointer-events: none;
}
