/* payment-confirmation.css */

/* R1 (navbar fixed) + R3 (no scrollbar shift) */
html {
    scrollbar-gutter: stable;
}

/* R5: page owns its base look (was inherited from dashboard.css) */
body {
    background-color: #f4f7fc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: clip;
}

.payment-page {
    width: 100%;
}

.page-title {
    color: #0f172a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}
[data-theme="dark"] .page-title {
    color: #f8fafc;
}

.payment-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    position: relative;
    overflow: hidden;
}



.payment-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.detail-row.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.1);
}

.detail-label {
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 18px;
    word-break: break-all;
}

.detail-row.full-width .detail-value {
    font-size: 24px;
    color: #3b82f6;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 32px;
}

.btn-modern {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#btn-confirm {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

#btn-confirm:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

#btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

#btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.note-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.note-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-title svg {
    color: #f59e0b;
}

.note-list {
    padding-left: 20px;
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.note-list li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .payment-card {
        padding: 24px;
    }
    
    .payment-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-modern {
        width: 100%;
    }
}

/* ========================================= */
/* Dark Mode Overrides                       */
/* ========================================= */
[data-theme="dark"] .payment-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .detail-row {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .detail-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .detail-row.full-width {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .detail-label {
    color: #94a3b8;
}

[data-theme="dark"] .detail-value {
    color: #f8fafc;
}

[data-theme="dark"] .detail-row.full-width .detail-value {
    color: #60a5fa;
}

[data-theme="dark"] .action-buttons {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] #btn-cancel {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

[data-theme="dark"] #btn-cancel:hover {
    background: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .note-section {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .note-title {
    color: #f8fafc;
}

[data-theme="dark"] .note-list {
    color: #cbd5e1;
}

[data-theme="dark"] .page-title.text-primary {
    color: #f8fafc !important;
}
