﻿/* ========== COMPACT PROFESSIONAL BILLING TOGGLE ========== */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 15px 0;
    padding: 0;
}

.billing-toggle {
    display: inline-flex;
    background: transparent;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    cursor: pointer;
    user-select: none;
    gap: 0;
    position: relative;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    height: 32px;
}

.billing-toggle:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.billing-toggle input {
    display: none;
}

/* Toggle Background Slider */
.toggle-slider {
    position: absolute;
    width: 49%;
    height: 91%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    border-radius: 4px;
    top: 0;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
    z-index: 1;
    margin: 1px;
}

.billing-toggle input:checked + .toggle-slider {
    left: calc(50% + 0px);
}

/* Toggle Label Container */
.toggle-label {
    display: flex;
    gap: 0;
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Toggle Options */
.monthly-label,
.annual-label {
    padding: 6px 16px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    color: #666;
    flex: 1;
    text-align: center;
    border-radius: 4px;
    line-height: 1.5;
    text-transform: capitalize;
}

/* Active state for Monthly */
.billing-toggle input:not(:checked) ~ .toggle-label .monthly-label {
    color: white;
    font-weight: 700;
    z-index: 3;
}

.billing-toggle input:not(:checked) ~ .toggle-label .annual-label {
    color: #999;
    font-weight: 500;
}

/* Active state for Annual */
.billing-toggle input:checked ~ .toggle-label .monthly-label {
    color: #999;
    font-weight: 500;
}

.billing-toggle input:checked ~ .toggle-label .annual-label {
    color: white;
    font-weight: 700;
    z-index: 3;
}

/* Pricing display transitions */
.pricing-monthly,
.pricing-annual {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.pricing-monthly.d-none {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
}

.pricing-annual.d-none {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
}

/* Savings badge animation */
.pricing-annual p.text-success {
    animation: slideInSavings 0.6s ease 0.2s forwards;
    opacity: 0;
}

@keyframes slideInSavings {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .monthly-label,
    .annual-label {
        padding: 5px 12px;
        font-size: 11px;
    }
}

.d-none {
    display: none !important;
}
