/* ---------- GLOBAL WRAPPER ---------- */
.tasks-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}

/* ---------- USER STATS ---------- */
.user-stats {
  text-align: right;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ---------- TABS ---------- */
.tasks-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.tasks-tabs .tab-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #CFAC00;
  background: #f9f9f9;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tasks-tabs .tab-btn.active,
.tasks-tabs .tab-btn:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

/* ---------- TAB CONTENT ---------- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 20px;
}

/* ---------- TASK CARD ---------- */
.task-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: all 0.3s ease;
}

.task-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* ---------- HEADER ---------- */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.task-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.task-reward {
  font-weight: 600;
  font-size: 0.95rem;
  color: #008a00;
}

/* ---------- DESCRIPTION ---------- */
.task-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 16px;
}

/* ---------- STATUS BADGE ---------- */
.task-status-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #f1f5f9;
  color: #374151;
}

.status-inprogress {
  background: #fff4e5;
  color: #b45309;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

/* ---------- ACTION BUTTONS ---------- */
.task-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.task-actions .btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.task-actions .btn:first-child {
  background: #111;
  color: #fff;
}

.task-actions .btn:last-child {
  background: #ef4444;
  color: #fff;
}

.task-actions .btn:hover {
  opacity: 0.9;
}

/* ---------- PROOF BOX ---------- */
.proof-box {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
  background: #fafafa;
}

.proof-box p {
  margin: 0 0 8px;
}

.task-proof-form input[type="file"] {
  display: block;
  margin: 0 auto 10px;
  font-size: 0.9rem;
}

.task-proof-form button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.task-proof-form button:hover {
  background: #005f8c;
}
