@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #e6edf3;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 255, 150, 0.12), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255, 50, 80, 0.10), transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(50, 150, 255, 0.08), transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.04), transparent 30%);
    animation: bgDrift 25s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes bgDrift {
    0% { transform: scale(1) rotate(0deg) translate(0, 0); }
    33% { transform: scale(1.05) rotate(1.5deg) translate(1%, -1%); }
    66% { transform: scale(1.02) rotate(-1deg) translate(-1%, 2%); }
    100% { transform: scale(1.08) rotate(2deg) translate(2%, -2%); }
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 150, 0.06), transparent 70%);
    top: -15%;
    left: -10%;
    animation: orbFloat 30s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(20%, 10%) scale(1.2); }
    50%  { transform: translate(40%, -10%) scale(1.4); }
    75%  { transform: translate(10%, 30%) scale(0.9); }
    100% { transform: translate(30%, 20%) scale(1.1); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.glass {
    background: rgba(10, 10, 30, 0.50);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
    background-size: 300% 100%;
    animation: shimmer 10s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 300% 0; }
    100% { background-position: -300% 0; }
}

.glass:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(50, 150, 255, 0.06);
}

.title-glow {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff96 0%, #ff3250 30%, #3399ff 70%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease-in-out infinite alternate;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.title-glow::after {
    content: '';
    position: absolute;
    inset: -10px -30px;
    background: radial-gradient(circle at 50% 50%, rgba(0,255,150,0.12), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

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

.subtitle {
    color: rgba(255, 255, 255, 0.40);
    font-weight: 400;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease;
}

.nav-tabs {
    border-bottom: none;
    gap: 0.6rem;
}

.nav-tabs .nav-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    padding: 0.7rem 1.8rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
    position: relative;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: scale(1.03);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.15), rgba(51, 153, 255, 0.15));
    border-color: rgba(0, 255, 150, 0.25);
    color: #fff;
    box-shadow: 0 0 40px rgba(0, 255, 150, 0.08);
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #00ff96, #3399ff, #ff3250);
    animation: tabPulse 2.5s infinite;
}

@keyframes tabPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.form-control {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    color: #fff !important;
    padding: 0.8rem 1.2rem;
    backdrop-filter: blur(4px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.form-control:focus {
    border-color: #3399ff !important;
    box-shadow: 0 0 0 4px rgba(51, 153, 255, 0.15) !important;
    transform: scale(1.005);
}

.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

.btn-glow {
    position: relative;
    border: none;
    border-radius: 60px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    background: linear-gradient(135deg, #3399ff, #00ccff);
    color: #fff;
    box-shadow: 0 8px 30px rgba(51, 153, 255, 0.2);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 40px rgba(51, 153, 255, 0.35);
    color: #fff;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
}
.btn-glow:hover::after { opacity: 1; }

.btn-success-glow {
    background: linear-gradient(135deg, #00ff96, #00cc80);
    color: #0a0a1a;
    box-shadow: 0 8px 30px rgba(0, 255, 150, 0.15);
}
.btn-success-glow:hover {
    box-shadow: 0 14px 40px rgba(0, 255, 150, 0.3);
    color: #0a0a1a;
}

.progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    height: 14px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}

.progress-bar {
    background: linear-gradient(90deg, #00ff96, #3399ff, #ff3250, #00ff96);
    background-size: 300% 100%;
    animation: gradShift 4s ease infinite, progressPulse 2s ease-in-out infinite;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.7rem;
    line-height: 14px;
    color: #fff;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes progressPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.table {
    --bs-table-bg: transparent;
    color: #fff !important;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.table thead th {
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.008);
    box-shadow: 0 4px 24px rgba(51, 153, 255, 0.06);
}

.table td {
    padding: 0.7rem 0.5rem;
    border: none;
    vertical-align: middle;
    color: #fff !important;
}

#singleResult .alert {
    border-radius: 20px !important;
    backdrop-filter: blur(4px);
    animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.08);
}

#singleResult .alert-success {
    background: rgba(0, 255, 150, 0.10) !important;
    border-color: rgba(0, 255, 150, 0.25) !important;
}
#singleResult .alert-success strong { color: #00ff96 !important; }

#singleResult .alert-danger {
    background: rgba(255, 50, 80, 0.10) !important;
    border-color: rgba(255, 50, 80, 0.25) !important;
}
#singleResult .alert-danger strong { color: #ff3250 !important; }

#singleResult .alert-info {
    background: rgba(51, 153, 255, 0.10) !important;
    border-color: rgba(51, 153, 255, 0.25) !important;
}
#singleResult .alert-info strong { color: #3399ff !important; }

#singleResult .alert * {
    color: #fff !important;
}
#singleResult .alert small,
#singleResult .alert .text-muted,
#singleResult .alert span {
    color: rgba(255, 255, 255, 0.75) !important;
}

@keyframes resultPop {
    0% { opacity: 0; transform: scale(0.92) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

#singleResult .spinner-border {
    color: #3399ff !important;
}

#batchStatus {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
}

.text-muted-soft {
    color: rgba(255, 255, 255, 0.25);
}
footer hr {
    border-color: rgba(255, 255, 255, 0.04);
}

/* Service toggle buttons */
.service-toggle .btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border-radius: 0;
}
.service-toggle .btn:first-child {
    border-radius: 60px 0 0 60px;
}
.service-toggle .btn:last-child {
    border-radius: 0 60px 60px 0;
}
.service-toggle .btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.service-toggle .btn-check:checked + .btn {
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.15), rgba(51, 153, 255, 0.15));
    border-color: rgba(0, 255, 150, 0.25);
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 255, 150, 0.08), inset 0 0 20px rgba(0, 255, 150, 0.05);
}
.service-toggle .btn-check:checked + .btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #00ff96, #3399ff);
    animation: tabPulse 2.5s infinite;
}
.service-toggle .btn {
    position: relative;
}

@media (max-width: 768px) {
    .title-glow { font-size: 2.2rem; }
    .nav-tabs .nav-link { padding: 0.5rem 1rem; font-size: 0.9rem; }
    body { padding: 1rem; }
}
