/* MicroJob Pro Frontend Styles */
.mjp-task-list,
.mjp-dashboard,
.mjp-proof-upload {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mjp-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mjp-task-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mjp-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mjp-task-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.mjp-task-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mjp-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mjp-reward {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1em;
}

.mjp-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    font-size: 0.9em;
}

.mjp-button:hover {
    background: #2980b9;
}

.mjp-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.mjp-button-primary { background: #3498db; }
.mjp-button-primary:hover { background: #2980b9; }
.mjp-button-success { background: #27ae60; }
.mjp-button-success:hover { background: #219a52; }

/* Dashboard Styles */
.mjp-dashboard-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mjp-balance-display {
    text-align: center;
    font-size: 2.5em;
    color: #27ae60;
    margin: 20px 0;
    font-weight: bold;
}

.mjp-withdrawal-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.mjp-withdrawal-form input {
    padding: 12px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    max-width: 100%;
}

.mjp-form-group {
    margin-bottom: 15px;
}

.mjp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.mjp-form-group input,
.mjp-form-group textarea,
.mjp-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.mjp-radio-group {
    display: flex;
    gap: 20px;
}

.mjp-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.mjp-proof-type-content {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.mjp-image-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

.mjp-remove-image {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

/* Table Styles */
.mjp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.mjp-table th,
.mjp-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.mjp-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.mjp-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.mjp-status-pending { background: #fff3cd; color: #856404; }
.mjp-status-approved { background: #d4edda; color: #155724; }
.mjp-status-rejected { background: #f8d7da; color: #721c24; }
.mjp-status-accepted { background: #d1edff; color: #004085; }

.mjp-type-credit { color: #27ae60; }
.mjp-type-debit { color: #e74c3c; }

.mjp-credit { color: #27ae60; font-weight: bold; }
.mjp-debit { color: #e74c3c; font-weight: bold; }

/* Alert Styles */
.mjp-alert {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid;
}

.mjp-alert-info {
    background: #d1edff;
    color: #004085;
    border-left-color: #3498db;
}

.mjp-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.mjp-alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mjp-tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .mjp-task-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .mjp-dashboard {
        padding: 10px;
    }
    
    .mjp-table {
        font-size: 0.9em;
    }
    
    .mjp-table th,
    .mjp-table td {
        padding: 8px 4px;
    }
    
    .mjp-withdrawal-form input {
        width: 100%;
        margin: 5px 0;
    }
    
    .mjp-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .mjp-balance-display {
        font-size: 2em;
    }
}