/* Subscription Management Styles */

.subscription-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.subscription-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.subscription-info {
    margin-bottom: 20px;
}

.subscription-info p {
    margin: 8px 0;
    font-size: 14px;
}

.subscription-info strong {
    color: #495057;
    min-width: 150px;
    display: inline-block;
}

.trial-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.cancelled-notice {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.subscription-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.stripe-card-element {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    min-height: 40px;
}

.stripe-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
}

.btn-primary {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 70px 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-info strong {
        min-width: 120px;
        font-size: 13px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Feature Comparison */
.feature-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.feature-item.feature-available {
    border-color: #28a745;
    background: #f8fff9;
}

.feature-item.feature-unavailable {
    border-color: #dc3545;
    background: #fff8f8;
    opacity: 0.6;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-available .feature-icon {
    color: #28a745;
}

.feature-unavailable .feature-icon {
    color: #dc3545;
} 