/* StreamlineConnect Billing Page Styles */

.pfc-button--secondary {
    padding: 10px;
    margin-top: 20px;
}

.pfc-subscription-status {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pfc-subscription-status h2 {
    font-size: 18px;
    margin: 0 0 16px 0;
}

.pfc-subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pfc-subscription-info__plan {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pfc-subscription-info__plan h3 {
    margin: 0;
    font-size: 16px;
}

.pfc-subscription-info__expiry {
    color: #6e6e73;
    margin: 0;
}

.pfc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.pfc-badge--success {
    background: #e3f1df;
    color: #108043;
}

.pfc-badge--warning {
    background: #fff4e5;
    color: #b95000;
}

.pfc-badge--danger {
    background: #fbeae5;
    color: #bf0711;
}

.pfc-badge--secondary {
    background: #f6f6f7;
    color: #6e6e73;
}

.pfc-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.pfc-plan-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow */
}

.pfc-plan-card--popular {
    border: 2px solid #008060;
    position: relative;
}

.pfc-plan-card--popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #008060;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.pfc-plan-card__header {
    text-align: center;
    margin-bottom: 16px;
}

.pfc-plan-card__header h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.pfc-plan-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pfc-plan-card__amount {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.pfc-plan-card__period {
    color: #6e6e73;
    font-size: 14px;
}

.pfc-plan-card__features {
    flex: 1;
    margin-bottom: 16px;
}

.pfc-plan-card__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfc-plan-card__features li {
    padding: 6px 0;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pfc-plan-card__features li::before {
    content: '✓';
    color: #008060;
    font-weight: bold;
    flex-shrink: 0;
}

.pfc-plan-card__action {
    text-align: center;
}

.pfc-plan-card__action .pfc-button {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .pfc-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pfc-plans-grid {
        grid-template-columns: 1fr;
    }
}

.pfc-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 0;
}

.pfc-alert--error {
    background: #fbeae5;
    color: #bf0711;
}

.pfc-alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pfc-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.pfc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #008060;
    border-radius: 50%;
    animation: pfc-spinner 0.6s linear infinite;
}

@keyframes pfc-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* License Section Styles */
.pfc-license-section {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pfc-license-header h2 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.pfc-license-header p {
    color: #6e6e73;
    margin: 0 0 20px 0;
}

.pfc-license-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.pfc-license-details h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
}

.pfc-license-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfc-license-item code {
    background-color: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

.pfc-license-empty {
    text-align: center;
    padding: 20px;
    color: #6e6e73;
}

/* Form styles for unified modal system */

.pfc-form-group {
    margin-bottom: 20px;
}

.pfc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.pfc-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.pfc-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.pfc-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
