﻿/* Subscription Container (layout only; card styling comes from .tab-content-card) */
.subscription-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Subscription Tab - Updated for integration-card-body structure */
.SubscriptionTab .integration-card-body {
    padding: var(--space-5);
}

#subscriptionContent {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#subscriptionDetails {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.detail-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#subscriptionPlans {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.plans-container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding-bottom: 20px;
}

.plans-grid {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.tab-content {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#agencyView {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#subscriptionContent::after {
    content: "";
    display: block;
    height: 20px;
}

/* Status Indicators */
.status-active {
    color: #059669;
    font-weight: 700;
}

.status-inactive {
    color: #dc2626;
    font-weight: 700;
}
/* No Data Message */
.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    margin-bottom: 20px;
}

    .no-data-message i {
        font-size: 2rem;
        color: #6b7280;
        margin-bottom: 15px;
        margin-top: 18px;
    }

    .no-data-message p {
        font-size: 1rem;
        color: #4b5563;
    }
/* Detail Card */
.detail-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Subscription plan details wrapper (uses integration-style card but must look like a white card) */
#subscriptionDetails .integration-detail-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.detail-header {
    padding: 15px 20px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .detail-header i {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .detail-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #111827;
    }

.detail-content {
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

    .detail-row:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.detail-label {
    font-weight: 500;
    color: #4b5563;
}

.detail-value {
    font-weight: 500;
    color: #111827;
}
/* Alerts */
.alert-success, .alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
/* Tab Navigation */
.menu-action-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    transition: all 0.2s ease;
}

    .menu-action-btn:hover {
        background-color: var(--primary-dark);
    }

    .menu-action-btn i {
        font-size: 12px;
    }

.tab-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
/* Media Queries */
@media (max-width: 768px) {
    .subscription-actions {
        flex-direction: column;
    }

    .activation-actions {
        flex-direction: column;
    }
}
