/* HarHafta Payment Plugin Styles - Redesigned for Consistency */

.har-hafta-payment-section {
    background: var(--input-bg, rgba(255, 255, 255, 0.8));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.har-hafta-payment-title {
    color: var(--text-light, #333333);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--btn-start, #ca851c);
    padding-bottom: 15px;
}

/* Payment Cards */
.har-hafta-payment-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.har-hafta-payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.har-hafta-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.har-hafta-card-header h3,
.har-hafta-card-header h4 {
    color: var(--text-light, #333333);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Payment Details Section - No Card Effect */
.har-hafta-payment-details-section {
    margin-top: 30px;
}

.har-hafta-payment-details-title {
    color: var(--text-light, #333333);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--btn-start, #ca851c);
    padding-bottom: 10px;
}

.har-hafta-payment-details-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.har-hafta-card-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--btn-start, #ca851c), var(--btn-end, #fbd971));
    border-radius: 50%;
    color: #00081d;
    flex-shrink: 0;
}

.har-hafta-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Instructions List */
.har-hafta-instructions-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light, #333333);
}

.har-hafta-instructions-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Bank Accounts Grid */
.har-hafta-bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.har-hafta-bank-account-card {
    background: var(--input-bg, rgba(255, 255, 255, 0.8));
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    transition: all 0.3s ease;
}

.har-hafta-bank-account-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.har-hafta-bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.har-hafta-bank-logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.har-hafta-bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    background: #fff;
    padding: 4px;
}

.har-hafta-bank-logo-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg, rgba(255, 255, 255, 0.8));
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    border-radius: 6px;
    color: var(--text-muted, rgba(51, 51, 51, 0.7));
}

.har-hafta-bank-header h5 {
    color: var(--text-light, #333333);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.har-hafta-bank-badge {
    background: linear-gradient(135deg, var(--btn-start, #ca851c), var(--btn-end, #fbd971));
    color: #00081d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.har-hafta-bank-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.har-hafta-bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light, rgba(51, 51, 51, 0.1));
}

.har-hafta-bank-item:last-child {
    border-bottom: none;
}

.har-hafta-bank-label {
    color: var(--text-muted, rgba(51, 51, 51, 0.7));
    font-size: 0.9rem;
    font-weight: 500;
}

.har-hafta-bank-value {
    color: var(--text-light, #333333);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.har-hafta-account-number,
.har-hafta-iban {
    font-family: 'Courier New', monospace;
    background: var(--input-bg, rgba(255, 255, 255, 0.8));
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
}

/* Form Styles */
.har-hafta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.har-hafta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.har-hafta-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.har-hafta-form-label {
    color: var(--text-light, #333333);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.har-hafta-required {
    color: #e74c3c;
    font-weight: 700;
}

.har-hafta-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light, rgba(51, 51, 51, 0.2));
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light, #333333);
    background: var(--input-bg, rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
}

.har-hafta-input:focus {
    outline: none;
    border-color: var(--btn-start, #ca851c);
    box-shadow: 0 0 0 3px rgba(202, 133, 28, 0.1);
}

.har-hafta-help-text {
    color: var(--text-muted, rgba(51, 51, 51, 0.7));
    font-size: 0.8rem;
    font-style: italic;
}

/* File Upload */
.har-hafta-file-upload {
    position: relative;
    display: block;
    width: 100%;
}

.har-hafta-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.har-hafta-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed var(--border-light, rgba(51, 51, 51, 0.3));
    border-radius: 8px;
    background: var(--input-bg, rgba(255, 255, 255, 0.8));
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 10px;
}

.har-hafta-file-upload-label:hover {
    border-color: var(--btn-start, #ca851c);
    background: rgba(202, 133, 28, 0.05);
}

.har-hafta-file-upload-label svg {
    color: var(--btn-start, #ca851c);
    width: 32px;
    height: 32px;
}

.har-hafta-file-upload-label span {
    color: var(--text-light, #333333);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Actions */
.har-hafta-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.har-hafta-btn {
    background: linear-gradient(135deg, var(--btn-start, #ca851c), var(--btn-end, #fbd971));
    color: #00081d;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.har-hafta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 133, 28, 0.4);
}

.har-hafta-btn:active {
    transform: translateY(0);
}

.har-hafta-btn-primary {
    background: linear-gradient(135deg, #ca851c, #fbd971) !important;
    color: #00081d !important;
    border: none !important;
}

.har-hafta-payment-submit {
    background: linear-gradient(135deg, #ca851c, #fbd971) !important;
    color: #00081d !important;
    border: none !important;
}

/* Messages */
.har-hafta-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.har-hafta-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.har-hafta-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Payment Success Modal */
.har-hafta-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.har-hafta-payment-modal.show {
    opacity: 1;
    visibility: visible;
}

.har-hafta-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.har-hafta-modal-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.har-hafta-payment-modal.show .har-hafta-modal-content {
    transform: scale(1);
}

.har-hafta-modal-header {
    background: linear-gradient(135deg, #ca851c, #fbd971);
    padding: 30px;
    text-align: center;
    color: #00081d;
}

.har-hafta-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00081d;
}

.har-hafta-modal-icon svg {
    width: 48px;
    height: 48px;
}

.har-hafta-modal-body {
    padding: 30px;
    text-align: center;
}

.har-hafta-modal-body h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.har-hafta-modal-body p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.har-hafta-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.har-hafta-modal-footer .har-hafta-btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .har-hafta-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .har-hafta-modal-header {
        padding: 20px;
    }
    
    .har-hafta-modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .har-hafta-modal-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .har-hafta-modal-body {
        padding: 20px;
    }
    
    .har-hafta-modal-body h3 {
        font-size: 1.3rem;
    }
    
    .har-hafta-modal-footer {
        padding: 15px 20px 20px;
    }
    
    .har-hafta-modal-footer .har-hafta-btn {
        min-width: 150px;
        padding: 12px 25px;
    }
}

.har-hafta-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .har-hafta-payment-section {
        padding: 20px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .har-hafta-payment-card {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .har-hafta-bank-accounts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .har-hafta-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .har-hafta-bank-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .har-hafta-bank-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .har-hafta-payment-section {
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .har-hafta-payment-card {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .har-hafta-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .har-hafta-bank-accounts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .har-hafta-bank-account-card {
        padding: 15px;
    }
    
    .har-hafta-file-upload-label {
        padding: 20px 15px;
    }
    
    .har-hafta-file-upload-label svg {
        width: 24px;
        height: 24px;
    }
    
    .har-hafta-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

/* Payment History Table Styles */
.har-hafta-payment-history {
    margin: 20px 0;
}

.har-hafta-payment-history-title {
    color: #333333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #ca851c;
    padding-bottom: 15px;
}

.har-hafta-payment-tables {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.har-hafta-payment-table-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(202, 133, 28, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.har-hafta-payment-table-title {
    background: linear-gradient(90deg, #ca851c 0%, #fbd971 100%);
    color: #fff;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.har-hafta-table-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.har-hafta-table-icon svg {
    stroke: #fff;
}

.har-hafta-payment-table-container {
    overflow-x: auto;
}

.har-hafta-payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.har-hafta-payment-table thead {
    background: rgba(202, 133, 28, 0.1);
}

.har-hafta-payment-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #ca851c;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.har-hafta-payment-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #555555;
    font-size: 0.9rem;
}

.har-hafta-payment-table tbody tr:hover {
    background: rgba(202, 133, 28, 0.05);
}

.har-hafta-amount-cell {
    font-weight: 600;
    color: #ca851c;
}

.har-hafta-transaction-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666666;
}

.har-hafta-payment-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.har-hafta-status-approved {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.har-hafta-status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.har-hafta-status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.har-hafta-rejection-row {
    background: rgba(239, 68, 68, 0.05);
}

.har-hafta-rejection-reason {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #dc2626;
    font-style: italic;
}

.har-hafta-payment-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(202, 133, 28, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.har-hafta-empty-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.har-hafta-payment-empty h4 {
    color: #333333;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.har-hafta-payment-empty p {
    color: #666666;
    margin: 0;
    font-size: 1rem;
}

/* Payment History Responsive Design */
@media (max-width: 768px) {
    .har-hafta-payment-table-container {
        font-size: 0.8rem;
    }
    
    .har-hafta-payment-table th,
    .har-hafta-payment-table td {
        padding: 8px 6px;
    }
    
    .har-hafta-payment-table-title {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .har-hafta-table-icon {
        width: 18px;
        height: 18px;
    }
    
    .har-hafta-table-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .har-hafta-payment-status {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .har-hafta-transaction-cell {
        font-size: 0.7rem;
        word-break: break-all;
    }
    
    .har-hafta-payment-empty {
        padding: 30px 15px;
    }
    
    .har-hafta-payment-empty h4 {
        font-size: 1.1rem;
    }
    
    .har-hafta-payment-empty p {
        font-size: 0.9rem;
    }
}