/* Average Calculator Custom Styling */

.apple-glass {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

html:not(.dark) .apple-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.custom-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    transition: all 0.2s ease-in-out;
}

html:not(.dark) .custom-input {
    background: #ffffff;
    border: 1px solid #d4d4d8;
    color: #18181b;
}

.custom-input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.tab-btn-active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.tab-btn-inactive {
    background: rgba(255, 255, 255, 0.04);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.dark) .tab-btn-inactive {
    background: #f4f4f5;
    color: #3f3f46;
    border: 1px solid #e4e4e7;
}

.tab-btn-inactive:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

html:not(.dark) .tab-btn-inactive:hover {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.number-pill {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    transition: all 0.2s ease;
}

html:not(.dark) .number-pill {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #3730a3;
}

.number-pill-median {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fde68a !important;
    font-weight: 700;
}

html:not(.dark) .number-pill-median {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #92400e !important;
}

.result-card-glow {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%);
}

.row-anim {
    animation: fadeInRow 0.2s ease-out forwards;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
