/* Payment Receipt Styles */
body {
    background-color: #f8fafc;
}
.payment-receipt-panel {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    background: #fff;
    margin-top: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}
.payment-receipt-header {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
}
.header-icon-wrapper {
    background-color: #eff6ff;
    color: #3b82f6;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-right: 20px;
}
.header-text h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}
.header-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.payment-receipt-body {
    padding: 30px;
}
.pr-form-group {
    margin-bottom: 24px;
}
.pr-form-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 13.5px;
    display: block;
}
.pr-form-group label .text-danger {
    color: #ef4444;
    margin-left: 2px;
}
.pr-input-group {
    position: relative;
    display: block;
    width: 100%;
}
.pr-input-group > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    z-index: 2;
}
.pr-input-group .form-control {
    padding-left: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 48px;
    font-size: 14px;
    color: #334155;
    box-shadow: none;
    transition: all 0.2s ease;
}
.pr-input-group .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.pr-input-group select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat right 12px center;
    background-color: #fff;
    padding-right: 36px;
}

/* Fix for Perfex auto-initialized Bootstrap Select */
.pr-input-group .bootstrap-select {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    height: auto !important;
}
.pr-input-group .bootstrap-select .dropdown-toggle {
    padding-left: 46px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    height: 48px !important;
    font-size: 14px !important;
    color: #334155 !important;
    background: #fff !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
}
.pr-input-group .bootstrap-select .dropdown-toggle:focus,
.pr-input-group .bootstrap-select.open .dropdown-toggle {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}
.pr-input-group .bootstrap-select .dropdown-toggle .filter-option {
    display: flex;
    align-items: center;
}

.file-upload-zone {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
.file-upload-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.file-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
.file-upload-icon {
    background-color: #eff6ff;
    color: #3b82f6;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}
.file-upload-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 8px;
}
.file-upload-subtitle {
    color: #64748b;
    font-size: 13px;
}
.btn-browse {
    background-color: #3b82f6;
    color: #fff;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13.5px;
    border: none;
    margin-left: 6px;
    font-weight: 500;
    pointer-events: none; /* Let the file input handle clicks */
}

.textarea-wrapper {
    position: relative;
}
.textarea-wrapper > i {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
}
.textarea-wrapper textarea {
    padding-left: 46px;
    padding-top: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    color: #334155;
    font-size: 14px;
    transition: all 0.2s ease;
}
.textarea-wrapper textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.char-count {
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

.payment-receipt-footer {
    padding: 24px 30px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
}
.btn-cancel {
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 24px;
    margin-right: 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-cancel:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}
.btn-submit-receipt {
    background-color: #3b82f6;
    color: #fff;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-submit-receipt:hover {
    background-color: #2563eb;
    color: #fff;
}
.btn-submit-receipt i {
    margin-right: 8px;
}
.selected-file-name {
    margin-top: 15px;
    font-weight: 500;
    color: #10b981;
    display: none;
}

@media (max-width: 767px) {
    .payment-receipt-header {
        padding: 20px;
    }
    .header-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-right: 15px;
    }
    .header-text h3 {
        font-size: 18px;
    }
    .payment-receipt-body {
        padding: 20px;
    }
    .payment-receipt-footer {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    .btn-cancel {
        flex: 1;
        margin-right: 12px;
        padding: 12px 0;
        text-align: center;
    }
    .btn-submit-receipt {
        flex: 1;
        padding: 12px 0;
    }
}
