/* Basic reset and styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 0;
    margin:0;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.receipt-container {
    background: white;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    padding: 38px 20px 20px 20px;
    position: relative;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.user-avatar {
    margin: 0 auto 16px auto;
    cursor: pointer;
    position: relative;
    width: 60px;
    height: 60px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    background-color: #f0f0f0;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    display: none;
}

.letter-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    background-color: #4a5568;
    color: white;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 400;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
}

.recipient-info {
    text-align: center;
}

.recipient-name {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.recipient-actual-name {
    text-transform: uppercase;
}

.phone-number {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    display: none;
}

/* Amount Section */
.amount-section {
    text-align: center;
    margin-bottom: 25px;
}

.currency-amount {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 12px;
}

span#amount {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Helvetica, Arial, sans-serif;
}

.currency {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    margin-right: 4px;
    -webkit-font-feature-settings: 'tnum';
    -moz-font-feature-settings: 'tnum';
    font-feature-settings: 'tnum';
}

.amount {
    font-size: 48px;
    font-weight: 400;
    color: #333;
    line-height: 1;
    -webkit-font-feature-settings: 'tnum';
    -moz-font-feature-settings: 'tnum';
    font-feature-settings: 'tnum';
}

.payment-status {
    font-size: 16px;
    color: #64686f;
    font-weight: 400;
    background-color: rgba(249, 250, 250, 1);
    padding: 10px 16px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    display: inline-block;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Pay Again Button */
.pay-again-btn {
    display: block;
    width: auto;
    min-width: 105px;
    height: 36px;
    margin: 0 auto 30px auto;
    background-color: rgba(38, 86, 200, 1);
    color: white;
    border: none;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    padding: 0 16px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pay-again-btn:hover:not(:disabled) {
    background-color: rgba(33, 74, 173, 1);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(38, 86, 200, 0.3);
    -webkit-box-shadow: 0 2px 8px rgba(38, 86, 200, 0.3);
    -moz-box-shadow: 0 2px 8px rgba(38, 86, 200, 0.3);
}

.pay-again-btn:active:not(:disabled) {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.pay-again-btn:disabled {
    background-color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

/* Status Section */
.status-section {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 10px;
    position: relative;
}

.completed-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cccdcf;
    width: 70%;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #34a853;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.completed-status span {
    font-size: 18px;
    color: #333;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
}

.transaction-date {
    font-size: 18px;
    color: #46484a;
    font-weight: 350;
    padding-top: 4px;
}

/* Bank Details Section */
.bank-details {
    margin-bottom: 28px;
    background-color: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    padding: 0;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.bank-header {
    display: flex;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    padding: 16px 20px;
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #e8eaed;
    border-radius: 16px 16px 0 0;
    -webkit-border-radius: 16px 16px 0 0;
    -moz-border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.bank-icon {
    margin-right: 12px;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
}

.sbi-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    display: flex;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    font-size: 16px;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bank-info {
    flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    display: flex;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    -ms-justify-content: space-between;
}

.bank-name {
    font-size: 19px;
    color: #333;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: break-word;
}

.dropdown-arrow {
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-arrow img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Transaction Details */
.transaction-details {
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.detail-row {
    margin-bottom: 12px;
    line-height: 1.4;
    display: block;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.value {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: break-word;
}

.recipient-detail,
.sender-detail {
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.platform {
    margin-top: -8px;
    margin-bottom: 20px;
}

.platform-info {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 20px;
}

.powered-by {
    display: flex;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    margin-bottom: 12px;
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.powered-by span {
    margin-right: 6px;
}

.upi-logo {
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

.google-pay-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-pay-logo img {
    height: 24px;
    width: auto;
}

/* Fallback text styling if image is not available */
.google {
    font-size: 24px;
    font-weight: 400;
    color: #4285f4;
    margin-right: 2px;
}

.pay {
    font-size: 20px;
    font-weight: 400;
    color: #333;
}

/* Editable Content Styling */
[contenteditable="true"] {
    outline: none;
    position: relative;
}

[contenteditable="true"]:focus {
    background-color: rgba(26, 115, 232, 0.1);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .currency {
        font-size: 36px; /* Keep same as larger screens */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .amount {
        font-size: 48px; /* Keep same as larger screens */
        font-weight: 500;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .pay-again-btn {
        width: auto;
        min-width: 120px;
        font-size: 16px; /* Keep same as larger screens */
        padding: 0 20px;
        -webkit-tap-highlight-color: rgba(38, 86, 200, 0.2);
    }
    
    .bank-header {
        padding: 12px 16px;
    }
    
    .transaction-details {
        padding: 16px;
    }
}

/* Animation for smooth transitions */
.receipt-container * {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Custom scrollbar for better appearance */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}
