/* 🎨 Receipt Verification Styles - Sade Mypayz Tasarımı */

/* Base Receipt Styles */
.receipt-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e9eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Receipt Header */
.receipt-header {
    padding: 1.5rem;
    background: #ff6c0e;
    color: white;
    text-align: center;
    border-bottom: 3px solid #f0f7ff;
}

.receipt-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.receipt-status {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    color: white;
}

/* Receipt Type Colors - Sade Mypayz Renkleri */
.receipt-add-money .receipt-header {
    background: #30e3ca;
}

.receipt-internal-transfer .receipt-header {
    background: #2698ff;
}

.receipt-wallet-transfer .receipt-header {
    background: #00adef;
}

.receipt-agency-transfer .receipt-header {
    background: #039de4;
}

.receipt-wallet-payment .receipt-header {
    background: #ff6c0e;
}

/* Receipt Content */
.receipt-content {
    padding: 1.5rem;
    background: #ffffff;
}

.section {
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 0;
}

/* Ensure proper Bootstrap grid spacing */
.section .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.section .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #474545;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8e9eb;
}

/* Info Items - Optimize for reduced content */
.info-item {
    background: #f9fafb;
    border: 1px solid #e8e9eb;
    border-radius: 8px;
    padding: 0.875rem;
    height: 100%;
    margin-bottom: 0.875rem;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item:hover {
    background: #f0f7ff;
    border-color: #2698ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(38, 152, 255, 0.1);
}

.info-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.info-item span {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Tutar Bilgileri - Mypayz Renkleri */
.amount-info {
    background: #fff8f0;
    border-color: #ff6c0e;
}

.amount-info span {
    color: #ff6c0e;
    font-weight: 600;
}

.fee-info {
    background: #f0f9ff;
    border-color: #2698ff;
}

.fee-info span {
    color: #2698ff;
    font-weight: 600;
}

.total-info {
    background: #f0fffe;
    border-color: #30e3ca;
}

.total-info span {
    color: #00a896;
    font-weight: 700;
    font-size: 1.1rem;
}

.total-amount {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Receipt Footer */
.receipt-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e8e9eb;
    text-align: center;
    color: #929292;
    font-size: 0.85rem;
}

/* Loading Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #929292;
}

.loading-container p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Verification Header */
.verification-header {
    background: #ff6c0e;
    color: white;
    margin-bottom: 2rem;
}

/* Error Container */
.error-container, .no-token-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-actions .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    background: #ff6c0e;
    border-color: #ff6c0e;
    color: white;
}

.error-actions .btn:hover {
    background: #ff6c0e;
    border-color: #ff6c0e;
}

/* 📱 Responsive Design */

/* Tablet - 768px to 1023px */
@media (max-width: 1023.98px) {
    .receipt-card {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .receipt-content {
        padding: 1.25rem;
    }
    
    .section {
        margin-bottom: 1.25rem;
    }
    
    .section .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .section .row > [class*="col-"] {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

/* Mobile - 320px to 767px */
@media (max-width: 767.98px) {
    .receipt-card {
        margin: 0.5rem;
        border-radius: 6px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    }
    
    .receipt-header {
        padding: 1rem;
    }
    
    .receipt-title {
        font-size: 1.2rem;
    }
    
    .receipt-content {
        padding: 1rem;
    }
    
    .section {
        margin-bottom: 1rem;
    }
    
    .section .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .section .row > [class*="col-"] {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .info-item {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .info-item label {
        font-size: 0.7rem;
    }
    
    .info-item span {
        font-size: 0.875rem;
    }
    
    .total-amount {
        font-size: 1rem !important;
    }
    
    .receipt-footer {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Mobile Error Styles */
    .error-container, .no-token-container {
        padding: 2rem 1rem;
        min-height: 50vh;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Mobile Loading */
    .loading-container {
        min-height: 300px;
        padding: 2rem 1rem;
    }
    
    /* Mobile Verification Header */
    .verification-header h1 {
        font-size: 1.5rem;
    }
}

/* Large Mobile - 480px to 767px */
@media (min-width: 480px) and (max-width: 767.98px) {
    .receipt-card {
        margin: 0.75rem;
    }
    
    .error-actions .btn {
        max-width: 320px;
    }
}

/* Extra Small Mobile - 320px to 479px */
@media (max-width: 479.98px) {
    .receipt-card {
        margin: 0.25rem;
        border-radius: 4px;
    }
    
    .receipt-header {
        padding: 0.875rem;
    }
    
    .receipt-content {
        padding: 0.875rem;
    }
    
    .info-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section {
        margin-bottom: 0.875rem;
    }
    
    .receipt-footer {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .receipt-card {
        box-shadow: none;
        border: 1px solid #e8e9eb;
        margin: 0;
        max-width: none;
    }
    
    .receipt-header {
        background: #f9fafb !important;
        color: #474545 !important;
    }
    
    .error-actions, 
    .loading-container,
    .verification-header {
        display: none !important;
    }
    
    .info-item {
        background: transparent !important;
        border: 1px solid #e8e9eb !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .receipt-card {
        border: 2px solid #000000;
    }
    
    .info-item {
        border: 2px solid #000000;
    }
    
    .section-title {
        border-bottom: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .info-item,
    .info-item:hover {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Add cashback specific color */
.receipt-wallet-cashback .receipt-header {
    background: #10b981;
}