/* Pay.css - Clean payment page styles */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.payment-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.copy-btn {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.copy-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.copy-btn.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.info-value {
    color: #212529;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left:5px;
    font-weight:bold;
}

.transfer-info-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.transfer-info-highlight .info-row {
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.transfer-info-highlight .info-row:last-child {
    border-bottom: none;
}

.transfer-info-highlight .info-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.transfer-info-highlight .info-value > span:first-child {
    flex: 1;
    text-align: left;
}

.transfer-info-header {
    font-weight: 700;
    background: rgba(102, 126, 234, 0.1);
    margin: -12px -12px 8px -12px;
    padding: 12px !important;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #667eea !important;
}

.transfer-info-header .info-label {
    color: #667eea;
    font-size: 15px;
}

.amount-display {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.qr-container {
    padding: 30px;
    background: white;
}

.timer-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px;
    border-radius: 12px;
    text-align: center;
    margin: 0 auto;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.timer-display > div:first-child {
    font-size: 12px;
    margin-bottom: 4px;
}

.countdown-timer {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-failed, .status-expired {
    background: #f8d7da;
    color: #721c24;
}

.bank-apps {
    margin: 20px 0;
}

.bank-apps .collapse-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.bank-apps button[aria-expanded="true"] .collapse-icon {
    transform: rotate(-180deg);
}

.bank-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bank-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-decoration: none;
}

.bank-app-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.bank-app-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 6px;
}

.bank-app-name {
    font-size: 10px;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 28px;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    
    .payment-card {
        border-radius: 12px;
    }
    
    .qr-container {
        padding: 20px;
    }
    
    .bank-apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .amount-display {
        font-size: 20px;
    }
    
    .info-label,
    .info-value {
        font-size: 13px;
    }
}
