/* Subscription Page specific styles */


/* Header from Timeline style */
.subscription-header {
   height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 15px;
    padding-bottom: 0px;
    border-bottom: none;
    flex-shrink: 0;
    background: transparent;
}

/* Custom Card Colors from User */
.bg-card-blue {
    background-color: #DCE6F5;
}

.bg-badge-blue {
    background-color: #E9EFF9;
}

.bg-card-green {
    background-color: #DCFCE7; /* Green-100-ish/custom */
}
.bg-badge-green {
    background-color: #F0FDF4;
}

.bg-card-purple {
    background-color: #F3E8FF; /* Purple-100 */
}
.bg-badge-purple {
    background-color: #FAF5FF;
}

.bg-card-gray {
    background-color: #F3F4F6; /* Gray-100 */
}
.bg-badge-gray {
    background-color: #F9FAFB;
}

.bg-card-gold {
    background-color: #FFEDD5; /* Orange-100 */
}
.bg-badge-gold {
    background-color: #FFF7ED; /* Orange-50 */
}


/* Billing Toggle */
.billing-toggle {
    position: relative;
    display: inline-flex;
    background: var(--color-input-bg);
    border: 1px solid var(--color-highlight);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.toggle-option {
    position: relative;
    z-index: 2;
    padding: 0.375rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-secondary-text);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: inherit;
}

.toggle-option.active {
    color: var(--color-primary-text);
}

.toggle-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    height: calc(100% - 0.5rem);
    background: var(--color-panel-bg);
    border-radius: 0.375rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.toggle-option[data-period="yearly"].active ~ .toggle-slider {
    transform: translateX(100%);
}

/* Layout Grid */
.plans-grid {
    display: grid;
    /* Allow cards to be narrower (220px) to fit 4 in a row on typical desktops */
    /* Force 4 columns on large screens, auto-fit might be too aggressive with min-width */
    grid-template-columns: repeat(4, 1fr);
    @media (max-width: 1280px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 4rem; /* Ensure bottom cards are reachable via scroll */
}

/* Custom Shadow utils if Tailwind not fully overlapping */
.shadow-blue-light {
    box-shadow: 0 20px 25px -5px rgba(219, 234, 254, 0.5), 0 8px 10px -6px rgba(219, 234, 254, 0.5);
}

/* Dark Mode Overrides for these hardcoded colors */
.dark .bg-card-blue { background-color: #1e293b; }
.dark .bg-badge-blue { background-color: #334155; border-color: #475569; color: #e2e8f0; }
.dark .bg-card-green { background-color: #14532d; }
.dark .bg-badge-green { background-color: #166534; border-color: #15803d; color: #f0fdf4; }
.dark .bg-card-purple { background-color: #581c87; }
.dark .bg-badge-purple { background-color: #6b21a8; border-color: #7e22ce; color: #f3e8ff; }
.dark .bg-card-gray { background-color: #1f2937; }
.dark .bg-badge-gray { background-color: #374151; border-color: #4b5563; color: #f3f4f6; }
.dark .bg-card-gold { background-color: #431407; } /* Orange-950/Brownish */
.dark .bg-badge-gold { background-color: #7c2d12; border-color: #9a3412; color: #ffedd5; }

/* Text colors inside cards need to adapt in dark mode if they are hardcoded gray-900 */
.dark .text-gray-900 { color: #f9fafb !important; }
.dark .text-gray-700 { color: #d1d5db !important; }
.dark .text-gray-600 { color: #9ca3af !important; }
.dark .bg-blue-50 { background-color: #1e293b !important; }

/* Prevent layout jump on toggle */
.price-monthly, .price-yearly {
    height: 3rem; /* Fixed height matching the font size + line height */
    overflow: hidden;
}

/* Flower icon style */
.flower-icon {
    color: #000000;
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
}

.dark .flower-icon {
    color: #ffffff;
}
