/* ============================================================
   XRAY Task Inbox — styles.css
   Minimal, professional internal-tool aesthetic (Linear/Notion)
   ============================================================ */

/* --- Reset & Base --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: #1a1a2e;
  background-color: #f7f7f8;
  min-height: 100vh;
}

/* --- Utility --- */

.hidden {
  display: none !important;
}

/* --- Auth Screen --- */

#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.auth-card h1 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.auth-card p {
  font-size: 0.85rem;
  color: #6b6b7b;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* --- Google Sign-In Button --- */

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: #3d3d50;
  background: #ffffff;
  border: 1px solid #d8d8de;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-google:hover {
  background: #f7f7f8;
  border-color: #c0c0cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-google:active {
  background: #f0f0f3;
  transform: scale(0.98);
}

/* --- Auth Error --- */

.auth-error {
  font-size: 0.8rem;
  color: #9a3030;
  background: #fceaea;
  border: 1px solid #eacaca;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  width: 100%;
}

/* --- App Screen --- */

#app-screen {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

#app-screen[hidden] {
  display: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* --- Nav Tabs --- */

.nav-tabs {
  display: flex;
  gap: 0.25rem;
}

.nav-tab {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: #6b6b7b;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-tab:hover {
  background: #f0f0f3;
  color: #1a1a2e;
}

.nav-tab.active {
  background: #1a1a2e;
  color: #ffffff;
}

.nav-tab.active .inbox-badge,
.nav-tab.active .sent-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --- Sent Badge --- */

.sent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b6b7b;
  background: #e2e2e6;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #6b6b7b;
}

.header-link {
  color: #888;
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.header-link:hover {
  color: #5a5acf;
  background: #f0f0ff;
}

#logout-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-family: inherit;
  color: #6b6b7b;
  background: transparent;
  border: 1px solid #d8d8de;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

#logout-btn:hover {
  background: #f0f0f3;
}

#app-screen h1,
#app-screen > h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

/* --- Task List --- */

#task-list {
  display: flex;
  flex-direction: column;
}

/* --- Task Card --- */

.task-card {
  padding: 1rem 0;
  border-bottom: 1px solid #ebebef;
  transition: background 0.12s ease;
}

.task-card:last-child {
  border-bottom: none;
}

.task-card:hover {
  background: rgba(0, 0, 0, 0.015);
}

.task-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 0.15rem;
}

.task-card .task-meta,
.task-card p {
  font-size: 0.8rem;
  color: #6b6b7b;
  margin-bottom: 0.65rem;
}

/* --- Action Buttons (Approve / Decline) --- */

.task-card .task-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-approve,
.btn-decline {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

/* Done — neutral dark */
.btn-done {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: #ffffff;
  background: #1a1a2e;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-done:hover {
  background: #2d2d48;
}

.btn-done:active {
  background: #12121f;
  transform: scale(0.97);
}

/* Approve — calm green */
.btn-approve {
  color: #1a7a42;
  background: #e8f5ed;
  border-color: #c5e4cf;
}

.btn-approve:hover {
  background: #d4eddc;
  border-color: #a8d6b6;
}

.btn-approve:active {
  background: #c0e4cc;
  transform: scale(0.97);
}

/* Decline — muted red */
.btn-decline {
  color: #9a3030;
  background: #fceaea;
  border-color: #eacaca;
}

.btn-decline:hover {
  background: #f5d6d6;
  border-color: #ddb5b5;
}

.btn-decline:active {
  background: #edc4c4;
  transform: scale(0.97);
}

/* --- Action Panel (Approve / Decline Forms) --- */

.action-panel {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.approve-form,
.decline-form {
  background: #fafafa;
  border: 1px solid #e2e2e6;
  border-radius: 7px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.approve-form label,
.decline-form label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #3d3d50;
}

.project-link-input,
.decline-reason-input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #ffffff;
  border: 1px solid #d8d8de;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.decline-reason-input {
  min-height: 64px;
  resize: vertical;
}

.project-link-input:focus,
.decline-reason-input:focus {
  border-color: #8b8bf5;
  box-shadow: 0 0 0 3px rgba(139, 139, 245, 0.12);
}

.confirm-approve-btn,
.confirm-decline-btn {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.confirm-approve-btn {
  color: #ffffff;
  background: #2a8c52;
}

.confirm-approve-btn:hover {
  background: #237a46;
}

.confirm-approve-btn:active {
  background: #1c6a3a;
  transform: scale(0.97);
}

.confirm-decline-btn {
  color: #ffffff;
  background: #b04040;
}

.confirm-decline-btn:hover {
  background: #9a3535;
}

.confirm-decline-btn:active {
  background: #852e2e;
  transform: scale(0.97);
}

/* --- Inline Form (approve / decline) --- */

.form-overlay {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.cancel-form-btn {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: #6b6b7b;
  background: transparent;
  border: 1px solid #d8d8de;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cancel-form-btn:hover {
  background: #f0f0f3;
}

/* --- Empty State --- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: #c0c0cc;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #3d3d50;
  margin-bottom: 0.35rem;
}

.empty-state p {
  font-size: 0.85rem;
  color: #9090a0;
  max-width: 280px;
}

/* --- Status Badges (optional) --- */

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.badge-pending {
  color: #8a6d20;
  background: #fef6e0;
}

.badge-approved {
  color: #1a7a42;
  background: #e8f5ed;
}

.badge-declined {
  color: #9a3030;
  background: #fceaea;
}

/* --- Origin Chip --- */

.badge-origin {
  color: #6b6b7b;
  background: #f0f0f3;
  border: 1px solid #e2e2e6;
}

/* --- Priority Badges --- */

.badge-priority-high {
  color: #b85c00;
  background: #fff4e6;
}

.badge-priority-urgent {
  color: #c62828;
  background: #fce4e4;
}

/* --- Inbox Count Badge --- */

.inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b6b7b;
  background: #e2e2e6;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* --- Task Meta Row --- */

.task-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.task-assignee {
  font-size: 0.75rem;
  color: #9090a0;
}

.task-description {
  font-size: 0.8rem;
  color: #6b6b7b;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

/* --- Project Typeahead Dropdown --- */

.project-dropdown {
  max-height: 160px;
  overflow-y: auto;
  border-radius: 5px;
}

.project-option {
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  color: #1a1a2e;
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-top: none;
  cursor: pointer;
  transition: background 0.1s ease;
}

.project-option:first-child {
  border-top: 1px solid #e2e2e6;
  border-radius: 5px 5px 0 0;
}

.project-option:last-child {
  border-radius: 0 0 5px 5px;
}

.project-option:hover {
  background: #f0f0f3;
}

/* --- Form Button Row --- */

.form-btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* --- New Task Button --- */

.btn-new-task {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: #ffffff;
  background: #1a1a2e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-new-task:hover {
  background: #2d2d48;
}

.btn-new-task:active {
  background: #12121f;
  transform: scale(0.97);
}

/* --- Create Task Form --- */

.create-form {
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.create-form[hidden] {
  display: none;
}

.create-form label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #3d3d50;
}

.label-optional {
  font-weight: 400;
  color: #9090a0;
}

.create-input,
.create-textarea,
.create-select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #f7f7f8;
  border: 1px solid #d8d8de;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.create-textarea {
  min-height: 64px;
  resize: vertical;
}

.create-select {
  appearance: auto;
}

.create-input:focus,
.create-textarea:focus,
.create-select:focus {
  border-color: #8b8bf5;
  box-shadow: 0 0 0 3px rgba(139, 139, 245, 0.12);
}

.create-error {
  font-size: 0.8rem;
  color: #9a3030;
  margin-top: 0.25rem;
}

/* --- Enrich Button --- */

.btn-enrich {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  color: #4a4a8a;
  background: #f0f0ff;
  border: 1px solid #d0d0e8;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-enrich:hover {
  background: #e4e4ff;
  border-color: #b8b8d8;
}

/* --- Enrich Form --- */

.enrich-form {
  background: #fafaff;
  border: 1px solid #d0d0e8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.enrich-form label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #3d3d50;
}

.enrich-form input[type="text"],
.enrich-form input[type="email"],
.enrich-form input[type="number"],
.enrich-form input[type="date"],
.enrich-form textarea {
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #ffffff;
  border: 1px solid #d8d8de;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.enrich-form textarea {
  min-height: 56px;
  resize: vertical;
}

.enrich-form input:focus,
.enrich-form textarea:focus {
  border-color: #8b8bf5;
  box-shadow: 0 0 0 3px rgba(139, 139, 245, 0.12);
}

.enrich-row {
  display: flex;
  gap: 0.75rem;
}

.enrich-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.confirm-enrich-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  color: #ffffff;
  background: #4a4a8a;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.confirm-enrich-btn:hover {
  background: #3a3a72;
}

.confirm-enrich-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Sent Cards --- */

.sent-card {
  padding: 1rem 0;
  border-bottom: 1px solid #ebebef;
  transition: background 0.12s ease;
}

.sent-card:last-child {
  border-bottom: none;
}

.sent-card:hover {
  background: rgba(0, 0, 0, 0.015);
}

.sent-card-done {
  opacity: 0.65;
}

.sent-card-done .task-title {
  text-decoration: line-through;
  color: #9090a0;
}

/* --- Status Chips --- */

.status-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.status-backlog {
  color: #6b6b7b;
  background: #f0f0f3;
}

.status-in-progress {
  color: #2e5cb8;
  background: #e8eef8;
}

.status-done {
  color: #1a7a42;
  background: #e8f5ed;
}

.status-blocked {
  color: #c62828;
  background: #fce4e4;
}

/* --- Triage Badges --- */

.badge-triage-new {
  color: #8a6d20;
  background: #fef6e0;
}

.badge-triage-rejected {
  color: #9a3030;
  background: #fceaea;
}

.badge-triage-needs-more-info {
  color: #b85c00;
  background: #fff4e6;
}

/* --- Completed Date --- */

.task-completed-date {
  font-size: 0.72rem;
  color: #9090a0;
  font-style: italic;
}

/* --- Suggest Change Button --- */

.btn-suggest {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  color: #5a4a9a;
  background: #f0edff;
  border: 1px solid #d4cef0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-suggest:hover {
  background: #e4deff;
  border-color: #bbb4e0;
}

/* --- Hidden views --- */

#sent-view[hidden],
#settings-view[hidden],
#inbox-view[hidden] {
  display: none;
}

/* --- Settings --- */

.settings-section {
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.settings-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.settings-desc {
  font-size: 0.82rem;
  color: #6b6b7b;
  margin-bottom: 0.75rem;
}

.settings-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #3d3d50;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

/* --- API Key Table --- */

.key-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.key-table th {
  text-align: left;
  font-weight: 500;
  color: #6b6b7b;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e2e2e6;
}

.key-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #f0f0f3;
  vertical-align: middle;
}

.key-table code {
  font-size: 0.78rem;
  background: #f0f0f3;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: #4a4a8a;
}

/* --- Key Generation Row --- */

.key-gen-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.key-gen-row .create-input {
  flex: 1;
}

/* --- Key Display (newly generated) --- */

.key-display {
  margin-top: 0.75rem;
  background: #f8f7e6;
  border: 1px solid #e8e4b0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.key-warning {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a6d20;
  margin-bottom: 0.5rem;
}

.key-value {
  display: block;
  font-size: 0.8rem;
  background: #ffffff;
  border: 1px solid #d8d8de;
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  word-break: break-all;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.btn-copy {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  color: #3d3d50;
  background: #ffffff;
  border: 1px solid #d8d8de;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-copy:hover {
  background: #f0f0f3;
}

/* --- Danger Button (Revoke) --- */

.btn-danger {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  color: #9a3030;
  background: #fceaea;
  border: 1px solid #eacaca;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-danger:hover {
  background: #f5d6d6;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Radio Group --- */

.radio-group {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #3d3d50;
  cursor: pointer;
}

/* --- Toggle Row --- */

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #3d3d50;
  cursor: pointer;
}

/* --- Proposal Section --- */

.proposal-section {
  background: #f8f6ff;
  border: 1px solid #e0dbf0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.proposal-section-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a4a9a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.proposal-card {
  background: #ffffff;
  border: 1px solid #d4cef0;
  border-left: 3px solid #7c6bc4;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.proposal-card:last-child {
  margin-bottom: 0;
}

.proposal-header {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a4a9a;
  margin-bottom: 0.3rem;
}

.proposal-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.proposal-task-ref {
  font-size: 0.78rem;
  color: #6b6b7b;
  margin-bottom: 0.35rem;
}

.proposal-message {
  font-size: 0.8rem;
  color: #6b6b7b;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* --- Suggest Change Form --- */

.suggest-form {
  background: #fafaff;
  border: 1px solid #d4cef0;
  border-radius: 7px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.suggest-form label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #3d3d50;
}

.suggest-conditional {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* --- Proposal Flash --- */

.proposal-flash {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a7a42;
  background: #e8f5ed;
  border: 1px solid #c5e4cf;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Loading Spinner (optional) --- */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e2e6;
  border-top-color: #6b6b7b;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Responsive / Mobile --- */

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  #app-screen {
    padding: 1.25rem 1rem 3rem;
  }

  .task-card {
    padding: 0.85rem 0;
  }

  .btn-approve,
  .btn-decline {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .confirm-approve-btn,
  .confirm-decline-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  .btn-google {
    padding: 0.7rem 1rem;
    min-height: 44px;
  }
}
