/* assets/css/frontend.css */
.crowdsource-task-list,
.crowdsource-my-tasks {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.crowdsource-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.crowdsource-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;
}

.crowdsource-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-header h4 {
    margin: 0;
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

.task-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.priority-1 { background: #e7f3ff; color: #0066cc; }
.priority-2 { background: #fff8e1; color: #ff9800; }
.priority-3 { background: #ffeaea; color: #d32f2f; }

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-requirements {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.task-requirements strong {
    display: block;
    margin-bottom: 5px;
}

.task-requirements p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.btn-claim-task {
    flex: 1;
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-claim-task:hover {
    background: #005a87;
}

.btn-claim-task:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-view-product {
    padding: 8px 16px;
    border: 1px solid #007cba;
    color: #007cba;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-view-product:hover {
    background: #007cba;
    color: white;
}

.crowdsource-no-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.login-required {
    text-align: center;
    padding: 20px;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 4px;
}

.my-tasks-list {
    display: grid;
    gap: 15px;
}

.my-task-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
}

.task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-info h4 {
    margin: 0;
    font-size: 16px;
}

.task-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-assigned { background: #fff8e1; color: #ff9800; }
.status-submitted { background: #e7f3ff; color: #0066cc; }
.status-completed { background: #e8f5e8; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }

.task-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.btn-edit-task {
    display: inline-block;
    padding: 6px 12px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-edit-task:hover {
    background: #005a87;
}

.status-submitted, .status-completed {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}


/* 在现有CSS末尾添加 */

/* 结算相关样式 */
.bank-info-section,
.settlement-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
    color: #2d3748;
}

.bank-info-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.info-item span {
    color: #2d3748;
    font-size: 15px;
}

.bank-info-empty {
    text-align: center;
    padding: 30px;
    color: #718096;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.unsettled-tasks,
.settlement-history {
    margin-bottom: 20px;
}

.unsettled-tasks h4,
.settlement-history h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
}

.unsettled-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unsettled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fffaf0;
    border-radius: 6px;
    border-left: 4px solid #f6ad55;
}

.task-name {
    flex: 1;
    font-weight: 500;
}

.task-points {
    color: #d69e2e;
    font-weight: 600;
    margin: 0 15px;
}

.settlement-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.settlement-status.unsettled {
    background: #fed7d7;
    color: #c53030;
}

.settlement-status.settled {
    background: #c6f6d5;
    color: #276749;
}

.settlement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settlement-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settlement-item:hover {
    background: #edf2f7;
}

.settlement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.settlement-number {
    font-weight: 600;
    color: #2d3748;
}

.settlement-date {
    color: #718096;
    font-size: 14px;
}

.settlement-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-points,
.total-amount {
    font-weight: 500;
}

.total-points {
    color: #d69e2e;
}

.total-amount {
    color: #38a169;
}

.view-settlement-details {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.settlement-info {
    margin-bottom: 10px;
}

.settlement-status-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.settlement-status-display.settled {
    background: #c6f6d5;
    color: #276749;
}

.settlement-status-display.unsettled {
    background: #fed7d7;
    color: #c53030;
}

.settlement-number {
    font-size: 11px;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.unsettled-count {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
}

.unsettled-count strong,
.unsettled-count span {
    color: white;
}