/* Subscription Management Styles */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mt-2 {
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscription-cancel-container,
    .manage-container {
        padding: 20px 16px;
    }
}

/* ========================================
   REFUND STATUS PAGE STYLES
   ======================================== */

.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 45px;
    width: 2px;
    height: calc(100% + 10px);
    background: #e2e8f0;
}

.timeline-item.completed::after {
    background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
}

.timeline-item.current::after {
    background: linear-gradient(180deg, #4299e1 0%, #e2e8f0 100%);
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 20px;
    border: 3px solid;
    position: relative;
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-color: #48bb78;
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.timeline-item.current .timeline-marker {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-color: #4299e1;
    color: white;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    animation: pulse-current 2s ease-in-out infinite;
}

.timeline-item.pending .timeline-marker {
    background: white;
    border-color: #e2e8f0;
    color: #a0aec0;
}

.timeline-item.failed .timeline-marker {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border-color: #f56565;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

@keyframes pulse-current {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
        transform: scale(1.05);
    }
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-content strong {
    display: block;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.timeline-content small {
    color: #718096;
}

/* Card Enhancements for Refund Status */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0 !important;
    padding: 20px;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* Badge Styles */
.badge {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge i {
    margin-right: 6px;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 20px;
}

.alert h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.alert-success {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    color: #234e52;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #7f1d1d;
}

.alert-primary {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #4c1d95;
}

.alert-secondary {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
}

/* Table Enhancements */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    padding: 16px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f7fafc;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

/* Button Enhancements */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63397d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.text-center.py-5 {
    padding: 60px 20px !important;
}

.text-center.py-5 .fa-inbox {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-container {
        padding: 20px 16px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .timeline-marker {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 16px;
    }
    
    .timeline-content strong {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

