/*
 * ===============================================================
 *  OneOneTask — Theme CSS
 *  สลับธีม: ปิด/เปิด comment ระหว่าง BRIGHT THEME และ DARK THEME
 * ===============================================================
 */

/* ================================================================
   ✅ BRIGHT THEME (Active)
   เหมาะสำหรับใช้งานกลางแดด / มือถือ / แสงสว่าง
   ================================================================ */

/* --- Page / Body --- */
.theme-page {
  background-color: #f0f9ff; /* sky-50 */
  color: #111827;            /* gray-900 */
  min-height: 100vh;
  font-family: sans-serif;
}

/* --- Top Bar --- */
.theme-topbar {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.theme-topbar-title {
  color: #0f172a; /* slate-900 */
  font-weight: 700;
}
.theme-topbar-time {
  color: #1e293b; /* slate-800 */
  font-weight: 700;
}
.theme-topbar-date {
  color: #64748b; /* slate-500 */
}
.theme-topbar-name {
  color: #1e293b;
  font-weight: 500;
}
.theme-topbar-email {
  color: #64748b;
  font-size: 0.75rem;
}
.theme-topbar-user-pill {
  background-color: #f1f5f9; /* slate-100 */
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 12px;
}

/* --- Page Title --- */
.theme-page-title {
  color: #0f172a;
  font-size: 1.875rem;
  font-weight: 700;
}
.theme-page-title-border {
  border-left: 4px solid #0ea5e9; /* sky-500 */
}

/* --- Card / Panel --- */
.theme-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;   /* slate-200 */
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.theme-card-alt {
  background-color: #f8fafc; /* slate-50 */
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

/* --- Floating Menu Label --- */
.theme-menu-label {
  background-color: #ffffff;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.theme-menu-logout-btn {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* --- Table --- */
.theme-table-header {
  background-color: #f1f5f9; /* slate-100 */
  color: #475569;             /* slate-600 */
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.theme-table-header th {
  border-bottom: 1px solid #e2e8f0;
}
.theme-table-body tr {
  border-bottom: 1px solid #f1f5f9;
}
.theme-table-body tr:hover {
  background-color: #f0f9ff; /* sky-50 */
}
.theme-table-cell-muted {
  color: #64748b; /* slate-500 */
}
.theme-table-cell-main {
  color: #0f172a; /* slate-900 */
  font-weight: 500;
}

/* --- Inputs / Textarea / Select --- */
.theme-input {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1; /* slate-300 */
  border-radius: 0.75rem;
  padding: 12px;
  color: #0f172a;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-input:focus {
  outline: none;
  border-color: #0ea5e9; /* sky-500 */
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background-color: #ffffff;
}
.theme-input::placeholder {
  color: #94a3b8; /* slate-400 */
}

/* --- Labels --- */
.theme-label {
  color: #475569; /* slate-600 */
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* --- Divider --- */
.theme-divider {
  border-color: #e2e8f0; /* slate-200 */
}

/* --- Muted / Meta text --- */
.theme-muted {
  color: #64748b; /* slate-500 */
  font-size: 0.75rem;
}

/* --- Info box (readonly fields) --- */
.theme-info-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
}
.theme-info-label {
  color: #94a3b8;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}
.theme-info-value {
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Status Badges --- */
.theme-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.theme-badge-default {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}
.theme-badge-success {
  background-color: #dcfce7; /* green-100 */
  color: #15803d;            /* green-700 */
  border-color: #bbf7d0;    /* green-200 */
}
.theme-badge-warning {
  background-color: #fefce8; /* yellow-50 */
  color: #a16207;            /* yellow-700 */
  border-color: #fde68a;    /* amber-200 */
}
.theme-badge-info {
  background-color: #eff6ff; /* blue-50 */
  color: #1d4ed8;            /* blue-700 */
  border-color: #bfdbfe;    /* blue-200 */
}
.theme-badge-danger {
  background-color: #fef2f2; /* red-50 */
  color: #b91c1c;            /* red-700 */
  border-color: #fecaca;    /* red-200 */
}

/* --- Buttons --- */
.theme-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  border: none;
}
.theme-btn-primary:hover { opacity: 0.92; }
.theme-btn-primary:active { transform: scale(0.97); }
.theme-btn-primary:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.theme-btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: background-color 0.2s;
}
.theme-btn-secondary:hover { background-color: #e2e8f0; }

/* --- Filter Buttons (active/inactive) --- */
.theme-filter-active-cyan {
  background: linear-gradient(to right, #0ea5e9, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.theme-filter-active-violet {
  background: linear-gradient(to right, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.theme-filter-inactive {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.theme-filter-inactive:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* --- Loading spinner text --- */
.theme-loading-text {
  color: #64748b;
}

/* --- Login Card --- */
.theme-login-card {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}
.theme-login-title {
  color: #0f172a;
  font-size: 1.875rem;
  font-weight: 700;
}
.theme-login-subtitle {
  color: #64748b;
}
.theme-login-footer {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* --- Background blobs (bright) --- */
.theme-bg-blob-1 {
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
}
.theme-bg-blob-2 {
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
}

/* --- Progress Stepper --- */
.theme-step-active {
  background-color: #0ea5e9; /* sky-500 */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}
.theme-step-inactive {
  background-color: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}
.theme-step-label-active { color: #0ea5e9; }
.theme-step-label-inactive { color: #94a3b8; }
.theme-step-line-active { background-color: #0ea5e9; }
.theme-step-line-inactive { background-color: #e2e8f0; }

/* --- MultiSelect --- */
.theme-multiselect {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  color: #0f172a;
}
.theme-multiselect:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.theme-multiselect-dropdown {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.theme-multiselect-option:hover {
  background-color: #f0f9ff;
}
.theme-multiselect-option-selected {
  background-color: #eff6ff;
}
.theme-multiselect-tag {
  background-color: #e0f2fe; /* sky-100 */
  color: #0369a1;            /* sky-700 */
  border: 1px solid #bae6fd; /* sky-200 */
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.875rem;
}
.theme-multiselect-placeholder {
  color: #94a3b8;
}

/* ================================================================
   🌙 DARK THEME (Commented out — uncomment to switch back)
   ================================================================

.theme-page {
  background-color: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  font-family: sans-serif;
}

.theme-topbar {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.theme-topbar-title { color: #ffffff; font-weight: 700; }
.theme-topbar-time { color: #ffffff; font-weight: 700; }
.theme-topbar-date { color: #94a3b8; }
.theme-topbar-name { color: #e2e8f0; font-weight: 500; }
.theme-topbar-email { color: #94a3b8; font-size: 0.75rem; }
.theme-topbar-user-pill {
  background-color: rgba(30,41,59,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 9999px;
  padding: 6px 12px;
}

.theme-page-title { color: transparent; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; background-clip: text; font-size: 1.875rem; font-weight: 700; }
.theme-page-title-border { border-left: 4px solid #06b6d4; }

.theme-card {
  background-color: #1e293b;
  border: 1px solid #374151;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.theme-card-alt {
  background-color: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
}

.theme-menu-label {
  background-color: #1e293b;
  color: #ffffff;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.theme-menu-logout-btn {
  background-color: #334155;
  border: 1px solid rgba(255,255,255,0.10);
}

.theme-table-header { background-color: rgba(51,65,85,0.5); color: #cbd5e1; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.theme-table-header th { border-bottom: 1px solid rgba(255,255,255,0.05); }
.theme-table-body tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.theme-table-body tr:hover { background-color: rgba(51,65,85,0.3); }
.theme-table-cell-muted { color: #94a3b8; }
.theme-table-cell-main { color: #ffffff; font-weight: 500; }

.theme-input {
  background-color: #111827; border: 1px solid #374151; border-radius: 0.75rem; padding: 12px;
  color: #ffffff; width: 100%; transition: border-color 0.2s;
}
.theme-input:focus { outline: none; border-color: #06b6d4; }
.theme-input::placeholder { color: #6b7280; }

.theme-label { color: #9ca3af; font-size: 0.875rem; font-weight: 600; display: block; margin-bottom: 6px; }
.theme-divider { border-color: #374151; }
.theme-muted { color: #9ca3af; font-size: 0.75rem; }

.theme-info-box { background-color: rgba(17,24,39,0.5); border: 1px solid rgba(55,65,81,0.5); border-radius: 0.75rem; padding: 1rem; }
.theme-info-label { color: #6b7280; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; }
.theme-info-value { color: #d1d5db; font-size: 0.875rem; font-weight: 500; }

.theme-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; border: 1px solid transparent; }
.theme-badge-default { background-color: #334155; color: #94a3b8; border-color: #475569; }
.theme-badge-success { background-color: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }
.theme-badge-warning { background-color: rgba(245,158,11,0.1); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
.theme-badge-info { background-color: rgba(59,130,246,0.1); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.theme-badge-danger { background-color: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(239,68,68,0.2); }

.theme-btn-primary { background: linear-gradient(135deg, #06b6d4, #2563eb); color: #ffffff; font-weight: 700; border-radius: 0.75rem; box-shadow: 0 4px 14px rgba(6,182,212,0.3); border: none; transition: opacity 0.2s, transform 0.1s; }
.theme-btn-primary:hover { opacity: 0.92; }
.theme-btn-primary:active { transform: scale(0.97); }
.theme-btn-primary:disabled { background: #374151; color: #6b7280; box-shadow: none; cursor: not-allowed; }

.theme-btn-secondary { background-color: #1e293b; color: #9ca3af; font-weight: 600; border-radius: 0.75rem; border: 1px solid #4b5563; transition: background-color 0.2s; }
.theme-btn-secondary:hover { background-color: #374151; }

.theme-filter-active-cyan { background: linear-gradient(to right, #06b6d4, #3b82f6); color: #ffffff; box-shadow: 0 4px 12px rgba(6,182,212,0.3); }
.theme-filter-active-violet { background: linear-gradient(to right, #7c3aed, #a855f7); color: #ffffff; box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.theme-filter-inactive { background-color: #1e293b; color: #94a3b8; border: 1px solid rgba(255,255,255,0.05); }
.theme-filter-inactive:hover { background-color: #334155; color: #ffffff; }

.theme-loading-text { color: #94a3b8; }

.theme-login-card { background-color: rgba(255,255,255,0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.10); border-radius: 1.5rem; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.theme-login-title { color: #ffffff; font-size: 1.875rem; font-weight: 700; }
.theme-login-subtitle { color: #94a3b8; }
.theme-login-footer { color: #475569; font-size: 0.75rem; }

.theme-bg-blob-1 { background: radial-gradient(circle, rgba(37,99,235,0.20) 0%, transparent 70%); }
.theme-bg-blob-2 { background: radial-gradient(circle, rgba(124,58,237,0.20) 0%, transparent 70%); }

.theme-step-active { background-color: #06b6d4; color: #ffffff; box-shadow: 0 4px 12px rgba(6,182,212,0.5); }
.theme-step-inactive { background-color: #374151; color: #9ca3af; border: 1px solid #4b5563; }
.theme-step-label-active { color: #22d3ee; }
.theme-step-label-inactive { color: #6b7280; }
.theme-step-line-active { background-color: #06b6d4; }
.theme-step-line-inactive { background-color: #374151; }

.theme-multiselect { background-color: #111827; border: 1px solid #374151; border-radius: 0.75rem; color: #ffffff; }
.theme-multiselect:focus-within { border-color: #06b6d4; box-shadow: 0 0 0 1px #06b6d4; }
.theme-multiselect-dropdown { background-color: #1f2937; border: 1px solid #374151; border-radius: 0.75rem; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.theme-multiselect-option:hover { background-color: #374151; }
.theme-multiselect-option-selected { background-color: rgba(6,182,212,0.15); }
.theme-multiselect-tag { background-color: rgba(6,182,212,0.15); color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); border-radius: 6px; padding: 2px 8px; font-size: 0.875rem; }
.theme-multiselect-placeholder { color: #6b7280; }

*/
/* ================================================================
   END DARK THEME
   ================================================================ */
