/* Modern Payment Methods Styling */

.payment-methods {
    margin: 20px 0;
}

.payment-methods .form-check {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    min-height: auto;
    display: flex;
    align-items: center;
}

.payment-methods .form-check:hover {
    border-color: var(--primary-color, #1186d6);
    box-shadow: 0 1px 4px rgba(17, 134, 214, 0.15);
}

.payment-methods .form-check input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: var(--primary-color, #1186d6);
    flex-shrink: 0;
}

.payment-methods .form-check input[type="radio"]:checked + label {
    color: var(--primary-color, #1186d6);
    font-weight: 600;
}

.payment-methods .form-check input[type="radio"]:checked {
    outline: 1px solid var(--primary-color, #1186d6);
    outline-offset: 1px;
}

.payment-methods .form-check-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 0;
    width: 100%;
    line-height: 1.2;
}

.payment-methods .form-check-label img {
    height: 18px;
    width: auto;
    max-width: 40px;
    margin-right: 6px;
    object-fit: contain;
}

.payment-methods .form-check-label i {
    font-size: 16px;
    margin-right: 6px;
    color: var(--primary-color, #1186d6);
}

/* Selected state */
.payment-methods .form-check:has(input:checked) {
    border-color: var(--primary-color, #1186d6);
    background: #f8fbff;
    box-shadow: 0 1px 6px rgba(17, 134, 214, 0.15);
}

/* Radio payment label */
.radio_payment label {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.radio_payment p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Alert styling */
.payment-methods .alert {
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.payment-methods .alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.payment-methods .alert i {
    margin-right: 8px;
}

/* Payment badges */
.payment-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.payment-badge.secure {
    background: #d4edda;
    color: #155724;
}

.payment-badge.fast {
    background: #cce5ff;
    color: #004085;
}

/* ========================================
   Manual Payment System Styles
   ======================================== */

/* Common utilities */
.text-primary-custom {
    color: var(--primary-color, #1186d6) !important;
}

.text-secondary-custom {
    color: var(--secondary-color, #09880b) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color, #1186d6) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color, #09880b) !important;
}

/* Button animations */
.btn-animate {
    transition: all 0.3s ease;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Toast notifications */
.toast-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 250px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge i {
    font-size: 14px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Form enhancements */
.form-floating-custom {
    position: relative;
}

.form-floating-custom label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: white;
    padding: 0 5px;
    font-size: 12px;
    color: #666;
}

/* Image viewer */
.image-viewer {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
}

.image-viewer img {
    transition: transform 0.3s ease;
}

.image-viewer:hover img {
    transform: scale(1.05);
}

/* Timeline */
.timeline-vertical {
    position: relative;
    padding-left: 40px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 3px solid #e0e0e0;
    z-index: 1;
}

.timeline-dot.active {
    border-color: var(--primary-color, #1186d6);
    background: var(--primary-color, #1186d6);
    color: white;
}

/* Copy button animation */
.copy-btn-animate {
    transition: all 0.2s ease;
}

.copy-btn-animate:active {
    transform: scale(0.95);
}

.copy-btn-animate.copied {
    background: #28a745 !important;
    color: white !important;
}

/* Pulse animation for pending status */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Skeleton loader for payment UI */
.payment-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .payment-methods .form-check {
        padding: 5px 8px;
    }
    
    .payment-methods .form-check-label {
        font-size: 12px;
    }
    
    .payment-methods .form-check-label img {
        height: 16px;
        max-width: 35px;
    }
    
    .payment-methods .form-check input[type="radio"] {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .toast-custom {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .timeline-vertical {
        padding-left: 30px;
    }

    .timeline-vertical::before {
        left: 10px;
    }

    .timeline-dot {
        left: -27px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .payment-methods .form-check:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-animate:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card-hover:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Accessibility improvements */
.payment-methods .form-check:focus-within {
    outline: 2px solid var(--primary-color, #1186d6);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color, #1186d6);
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .payment-skeleton {
        background: linear-gradient(90deg, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%);
    }
    
    .form-floating-custom label {
        background: #333;
        color: #ccc;
    }
}
