/* Subscriptions Page Styles */

/* Primary Color Utilities */
.bg-primary {
    background-color: #5B5BFF;
}
.bg-primary:hover, .hover\:bg-primary-dark:hover {
    background-color: #4848CC;
}
.text-primary {
    color: #5B5BFF;
}
.border-primary {
    border-color: #5B5BFF;
}
.bg-primary\/10 {
    background-color: rgba(91, 91, 255, 0.1);
}

/* Plan Cards */
.plan-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: #5B5BFF;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    animation: fadeIn 0.3s ease;
}

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

/* Toast Animation */
#toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:not(:disabled):active {
    transform: scale(0.98);
}

/* Status Badge Colors */
.badge-active {
    background-color: #22c55e;
    color: white;
}

.badge-inactive {
    background-color: #ef4444;
    color: white;
}

.badge-processing {
    background-color: #f59e0b;
    color: white;
}

/* Auth Buttons */
.auth-btn {
    transition: all 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .plan-card {
        padding: 1.25rem;
    }

    .plan-card h3 {
        font-size: 1.125rem;
    }

    .plan-card .text-4xl {
        font-size: 2rem;
    }

    .plan-card ul li {
        font-size: 0.875rem;
    }

    .plan-card ul li > div > span {
        font-size: 0.875rem;
    }

    .plan-card ul li > div > p {
        font-size: 0.75rem;
    }
}

/* Payment Widget Container */
#payment-widget {
    width: 100%;
    min-height: 200px;
}

/* Modal Overlay */
.modal-overlay {
    backdrop-filter: blur(4px);
}

/* Success Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.success-checkmark {
    animation: checkmark 0.5s ease forwards;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

/* Card Info Styles */
.card-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

/* Table Styles */
table {
    border-collapse: collapse;
}

table th,
table td {
    white-space: nowrap;
}

@media (max-width: 640px) {
    table {
        font-size: 0.75rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }
}

/* Primary Color Variables */
:root {
    --color-primary: #5B5BFF;
    --color-primary-dark: #4848CC;
    --color-primary-light: #7B7BFF;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Scroll Padding for Sticky Header */
html {
    scroll-padding-top: 80px;
}
