/* Frontend Styles for Fluent Forms Tasks Wallet */

.fftw-task-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.fftw-task-info h3 {
    margin-top: 0;
    color: #333;
}

.fftw-task-description {
    margin: 10px 0;
    color: #666;
}

.fftw-task-reward {
    font-size: 16px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 10px 0;
}

.fftw-task-limit {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.fftw-task-limit strong {
    color: #333;
}

/* Wallet styles */
.fftw-wallet-balance {
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
}

.fftw-wallet-transactions {
    margin-top: 20px;
}

.fftw-transaction-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.fftw-transaction-item:last-child {
    border-bottom: none;
}

.fftw-transaction-type {
    font-weight: bold;
}

.fftw-transaction-type.credit {
    color: #46b450;
}

.fftw-transaction-type.debit {
    color: #dc3232;
}

/* Withdrawal styles */
.fftw-withdrawal-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.fftw-bank-details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

/* Task list styles */
.fftw-tasks-list {
    margin: 20px 0;
}

.fftw-task-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    background: #fff;
}

.fftw-task-item h4 {
    margin-top: 0;
    color: #333;
}

.fftw-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fftw-task-meta {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.fftw-task-actions {
    margin-top: 15px;
    text-align: right;
}

.fftw-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.fftw-btn-primary {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.fftw-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.fftw-btn-disabled {
    background: #f1f1f1;
    color: #999;
    border: 1px solid #ddd;
    cursor: not-allowed;
}

.fftw-task-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.fftw-task-status.active {
    background: #46b450;
    color: #fff;
}

.fftw-task-status.inactive {
    background: #dc3232;
    color: #fff;
}

.fftw-task-status.completed {
    background: #ffb900;
    color: #fff;
}

/* Form styles */
.fftw-form-container {
    margin: 20px 0;
}

/* Modal styles */
.fftw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fftw-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.fftw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.fftw-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.fftw-modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.fftw-modal-close:hover {
    color: #374151;
}

.fftw-modal-body {
    padding: 20px;
}

.fftw-form-group {
    margin-bottom: 20px;
}

.fftw-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.fftw-form-group input[type="text"],
.fftw-form-group input[type="number"],
.fftw-form-group select,
.fftw-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.fftw-form-group input[type="text"]:focus,
.fftw-form-group input[type="number"]:focus,
.fftw-form-group select:focus,
.fftw-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fftw-form-group input[type="checkbox"] {
    margin-right: 8px;
}

.fftw-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.fftw-btn-secondary {
    background: #6b7280;
    color: #fff;
    border: 1px solid #6b7280;
}

.fftw-btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

/* Form styles */
.fftw-form-group {
    margin-bottom: 15px;
}

.fftw-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.fftw-form-group input,
.fftw-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.fftw-form-group input:focus,
.fftw-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .fftw-task-info,
    .fftw-withdrawal-form,
    .fftw-bank-details {
        padding: 10px;
    }
    
    .fftw-wallet-balance {
        font-size: 16px;
    }
    
    .fftw-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .fftw-form-actions {
        flex-direction: column;
    }
    
    .fftw-form-actions .fftw-btn {
        width: 100%;
    }
}

/* Withdrawal details styles */
.fftw-withdrawal-detail {
    padding: 20px 0;
}

.fftw-detail-row {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.fftw-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fftw-detail-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.fftw-detail-section h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 1.1rem;
}

.fftw-bank-details-display {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.fftw-bank-detail-row {
    margin-bottom: 8px;
    font-size: 14px;
}

.fftw-bank-detail-row:last-child {
    margin-bottom: 0;
}

.fftw-bank-detail-row strong {
    color: #374151;
    min-width: 120px;
    display: inline-block;
}