/* Payment Page Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header-section {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    height: 40px;
}

/* QR Code Section */
.qr-section .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    /*border-radius: 15px;*/
}

.qr-code-container {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin: 20px 0;
}

.qr-code {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 3px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Timer Section */
.timer-section {
    text-align: center;
}

.timer-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: inline-block;
    min-width: 200px;
}

.timer-label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.countdown-timer {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Status Section */
.status-section {
    margin: 20px 0;
}

.payment-status {
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.payment-status .status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.status-pending .status-icon {
    background-color: #f39c12;
    animation: pulse 2s infinite;
}

.status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #74c0fc;
}

.status-processing .status-icon {
    background-color: #17a2b8;
    animation: spin 1s linear infinite;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #51cf66;
}

.status-success .status-icon {
    background-color: #28a745;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #ff6b6b;
}

.status-failed .status-icon {
    background-color: #dc3545;
}

.status-expired {
    background-color: #e2e3e5;
    color: #383d41;
    border: 2px solid #adb5bd;
}

.status-expired .status-icon {
    background-color: #6c757d;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Payment Info Section */
.payment-info .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
}

.info-item .value {
    font-weight: 500;
    color: #212529;
    text-align: right;
}

.info-item .value.amount {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

/* Connection Status */
.connection-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dc3545;
    transition: background-color 0.3s ease;
}

.indicator.connected {
    background-color: #28a745;
    animation: pulse 2s infinite;
}

.indicator.connecting {
    background-color: #ffc107;
    animation: pulse 1s infinite;
}

/* Supported Apps */
.supported-apps {
    text-align: center;
}

.app-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.app-list img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.app-list img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-container {
        padding: 10px;
    }
    
    .qr-code {
        max-width: 250px;
    }
    
    .countdown-timer {
        font-size: 24px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item .value {
        text-align: left;
    }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Server Status Badge */
#server-status {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Demo Controls Styling */
.border-warning {
    border-color: #ffc107 !important;
}

.bg-warning {
    background-color: #fff3cd !important;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}