/* WHM Sonic Panel - Custom Styles */
/* Tailwind CSS is loaded via CDN, this file contains custom overrides */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Gradient */
.hero-gradient {
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0a2a 30%, #0a0f1e 60%, #0a0f1e 100%);
}

/* Card Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.glow-purple {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.glow-green {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

/* Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradient-x {
    0%, 100% { background-size: 200% 200%; background-position: left center; }
    50% { background-size: 200% 200%; background-position: right center; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes radio-wave {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes equalizer-bar {
    0%, 100% { height: 20%; }
    25% { height: 80%; }
    50% { height: 40%; }
    75% { height: 90%; }
}

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes success-check {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-gradient-x { animation: gradient-x 15s ease infinite; }
.animate-pulse-ring { animation: pulse-ring 2s ease-out infinite; }
.animate-slide-up { animation: slide-up 0.6s ease forwards; }
.animate-fade-in { animation: fade-in 0.4s ease forwards; }

/* Radio Wave Decorations */
.radio-wave {
    border-radius: 50%;
    position: absolute;
    animation: radio-wave 3s ease-out infinite;
}

/* Equalizer bars */
.eq-bar {
    animation: equalizer-bar 1.2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0f1e; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* Color Scheme Dark for Native Elements */
html, :root {
    color-scheme: dark;
}

/* Global Select & Option Styling - High Contrast & Dark Theme */
select,
select.form-select,
.select-dark {
    color-scheme: dark !important;
    background-color: #0d1527 !important;
    color: #f8fafc !important;
}

select option,
select optgroup,
option {
    background-color: #0d1527 !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
}

select option:checked,
select option:hover,
select option:focus {
    background-color: #7c3aed !important;
    color: #ffffff !important;
}

select option[disabled],
select option[value=""] {
    color: #94a3b8 !important;
    background-color: #080d19 !important;
}

/* Form Styles */
.input-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease;
}

.input-dark:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-dark::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Badge Styles */
.badge-active { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Sidebar Active */
.nav-item-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-left: 3px solid #3b82f6;
}

/* Table Styles */
.table-dark tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Package Card Featured */
.package-featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Copy Button */
.copy-btn { transition: all 0.2s ease; }
.copy-btn.copied { color: #10b981; }

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-padding { padding: 3rem 1rem; }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; color: black !important; }
}
