/* Modern Minimalistic Public Styles for Money Package Tracker - RTL Support */

.mpt-package-display {
    min-height: 100vh;
    background: #fafafa;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    padding: 0;
    margin: 0;
    direction: rtl;
    text-align: right;
}

/* RTL Base Styles */
.mpt-package-display * {
    direction: rtl;
    text-align: right;
}

.mpt-package-display .mpt-amount-value,
.mpt-package-display .mpt-status-badge,
.mpt-package-display .mpt-btn {
    direction: ltr;
    text-align: center;
}

.mpt-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mpt-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.mpt-header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.mpt-batch-number {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

.mpt-main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 40px;
    flex: 1;
}

.mpt-package-card {
    padding: 32px;
}

.mpt-amount-section {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    position: relative;
}

.mpt-amount-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpt-amount-value {
    font-size: 2.5rem;
    font-weight: 200;
    margin: 0;
    letter-spacing: -0.02em;
}

.mpt-status-section {
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.mpt-status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.mpt-status-pending::before { background: linear-gradient(90deg, #ffc107 0%, #ff8c00 100%); }
.mpt-status-processing::before { background: linear-gradient(90deg, #17a2b8 0%, #20c997 100%); }
.mpt-status-transferred::before { background: linear-gradient(90deg, #6f42c1 0%, #e83e8c 100%); }
.mpt-status-delivered::before { background: linear-gradient(90deg, #28a745 0%, #20c997 100%); }
.mpt-status-handed-over::before { background: linear-gradient(90deg, #fd7e14 0%, #ffc107 100%); }
.mpt-status-reversed::before { background: linear-gradient(90deg, #dc3545 0%, #c82333 100%); }
.mpt-status-refunded::before { background: linear-gradient(90deg, #6c757d 0%, #5a6268 100%); }

.mpt-status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.mpt-status-info {
    flex: 1;
    min-width: 200px;
}

.mpt-status-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
    display: block;
}

.mpt-status-value {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: capitalize;
    margin: 0;
}

.mpt-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.mpt-status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.mpt-status-badge:hover::before {
    left: 100%;
}

.mpt-status-pending .mpt-status-badge { 
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
    color: #856404; 
    border: 1px solid #ffeaa7;
}

.mpt-status-processing .mpt-status-badge { 
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%); 
    color: #0c5460; 
    border: 1px solid #bee5eb;
}

.mpt-status-transferred .mpt-status-badge { 
    background: linear-gradient(135deg, #e2e3f1 0%, #d1d3f1 100%); 
    color: #4c2a85; 
    border: 1px solid #d1d3f1;
}

.mpt-status-delivered .mpt-status-badge { 
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); 
    color: #155724; 
    border: 1px solid #c3e6cb;
}

.mpt-status-handed-over .mpt-status-badge { 
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%); 
    color: #b8860b; 
    border: 1px solid #fdcb6e;
}

.mpt-status-reversed .mpt-status-badge { 
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); 
    color: #721c24; 
    border: 1px solid #f5c6cb;
}

.mpt-status-refunded .mpt-status-badge { 
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%); 
    color: #495057; 
    border: 1px solid #d6d8db;
}

.mpt-status-notes {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    font-style: italic;
}

.mpt-details-section {
    margin-bottom: 24px;
}

.mpt-details-section h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.mpt-details-content {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    line-height: 1.6;
    color: #555;
    font-size: 0.9rem;
}

.mpt-info-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.mpt-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.mpt-info-item:last-child {
    border-bottom: none;
}

.mpt-info-item strong {
    color: #1a1a1a;
    font-weight: 500;
}

.mpt-info-item span {
    color: #666;
}

.mpt-actions {
    text-align: center;
    padding: 32px 24px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.mpt-btn {
    display: inline-block;
    padding: 14px 32px;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mpt-btn-primary {
    background: #667eea;
    color: white;
}

.mpt-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mpt-btn-secondary {
    background: #6c757d;
    color: white;
}

.mpt-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.mpt-footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 0.8rem;
}

/* Responsive status section */
@media (max-width: 768px) {
    .mpt-status-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .mpt-status-info {
        min-width: auto;
        width: 100%;
    }
    
    .mpt-status-badge {
        align-self: flex-start;
    }
    
    .mpt-status-section {
        padding: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .mpt-status-section {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .mpt-status-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .mpt-status-value {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpt-container {
        padding: 16px;
        max-width: 100%;
    }
    
    .mpt-header h1 {
        font-size: 1.75rem;
    }
    
    .mpt-package-card {
        padding: 24px;
    }
    
    .mpt-amount-value {
        font-size: 2rem;
    }
    
    .mpt-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .mpt-btn {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .mpt-header h1 {
        font-size: 1.5rem;
    }
    
    .mpt-amount-value {
        font-size: 1.75rem;
    }
    
    .mpt-package-card {
        padding: 20px;
    }
    
    .mpt-header {
        padding-top: 20px;
        margin-bottom: 24px;
    }
    
    .mpt-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .mpt-actions {
        padding: 24px 16px;
    }
}

/* Print Styles */
@media print {
    .mpt-package-display {
        background: white !important;
        padding: 0;
    }
    
    .mpt-header {
        color: #1a1a1a !important;
        border-bottom: 2px solid #1a1a1a;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .mpt-amount-section {
        background: #f0f0f0 !important;
        color: #1a1a1a !important;
        border: 2px solid #1a1a1a;
    }
    
    .mpt-main-content {
        box-shadow: none;
        border: 1px solid #1a1a1a;
    }
    
    .mpt-actions {
        display: none;
    }
    
    .mpt-footer {
        color: #1a1a1a !important;
        margin-top: 20px;
        border-top: 1px solid #1a1a1a;
        padding-top: 10px;
    }
}

/* Loading states */
.mpt-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth animations */
.mpt-package-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.mpt-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Subtle hover effects */
.mpt-info-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
    margin: 0 -8px;
    padding: 8px;
}