/* AgenWebsite Payment Confirmation - Frontend Styles */

/* Upload Container */
.aw-payment-confirmation-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.aw-payment-confirmation-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.aw-payment-confirmation-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.aw-payment-confirmation-header .order-info {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Status Display */
.aw-confirmation-status {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid;
}

.aw-confirmation-status.pending {
    background-color: #fff8e1;
    border-color: #ffb300;
    color: #ff6f00;
}

.aw-confirmation-status.approved {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.aw-confirmation-status.rejected {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.aw-confirmation-status h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.aw-confirmation-status p {
    margin: 0;
}

/* Upload Area */
.aw-upload-area {
    position: relative;
    padding: 60px 20px;
    margin-bottom: 20px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aw-upload-area:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.aw-upload-area.drag-over {
    border-color: #0073aa;
    background: #e3f2fd;
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #999;
}

.aw-upload-area p {
    margin: 5px 0;
    color: #666;
    font-size: 16px;
}

.aw-upload-area p:last-child {
    font-size: 14px;
    color: #999;
}

/* File Input (Hidden) */
#aw-payment-file {
    position: absolute;
    left: -9999px;
}

/* File Preview */
.file-preview {
    display: none;
    margin-bottom: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    position: relative;
}

.file-info img {
    max-width: 80px;
    max-height: 80px;
    margin-right: 15px;
    border-radius: 4px;
}

.file-icon {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f5f5f5;
    border-radius: 4px;
}

.file-details {
    flex: 1;
}

.file-name {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #333;
}

.file-size {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: #f44336;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #d32f2f;
}

/* Notes Field */
.additional-notes {
    margin-bottom: 20px;
}

.additional-notes label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.additional-notes textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #0073aa;
    color: #fff;
}

.form-actions button[type="submit"]:hover {
    background: #005a87;
}

.form-actions button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-actions button[type="button"] {
    background: #f0f0f0;
    color: #333;
}

.form-actions button[type="button"]:hover {
    background: #e0e0e0;
}

/* Upload Progress */
.upload-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0073aa;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 10px;
    text-align: center;
    color: #666;
}

/* Alerts */
.aw-alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid;
}

.aw-alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.aw-alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.aw-alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Thank You Page Styles */
.aw-payment-code-thankyou {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.aw-payment-code-thankyou h3 {
    margin-top: 0;
    color: #0073aa;
}

.aw-payment-code-thankyou p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* My Account Page Styles */
.woocommerce-MyAccount-content .aw-payment-confirmation-container {
    max-width: 600px;
}

.woocommerce-orders-table__cell-order-actions .button.upload_confirmation,
.woocommerce-orders-table__cell-order-actions .button.view_confirmation {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
}

.woocommerce-orders-table__cell-order-actions .button.upload_confirmation:hover,
.woocommerce-orders-table__cell-order-actions .button.view_confirmation:hover {
    background: #005a87;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .aw-payment-confirmation-container {
        padding: 15px;
    }
    
    .aw-upload-area {
        padding: 40px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-info img,
    .file-icon {
        margin: 0 0 15px 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .aw-upload-form-container,
    .form-actions,
    .remove-file {
        display: none !important;
    }
}

/* Accessibility */
.aw-upload-area:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aw-alert {
    animation: fadeIn 0.3s ease;
}

/* Additional Utilities */
.aw-text-center {
    text-align: center;
}

.aw-mt-20 {
    margin-top: 20px;
}

.aw-mb-20 {
    margin-bottom: 20px;
}

.aw-hidden {
    display: none;
}