/* Custom Styling */

.tab-btn {
  color: #94a3b8;
  background: transparent;
}

.tab-btn:hover {
  color: #f1f5f9;
  background: rgba(51, 65, 85, 0.4);
}

.tab-btn.active {
  color: #ffffff;
  background: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.view-btn {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
}

.view-btn:hover {
  color: #f1f5f9;
  background: #334155;
}

.view-btn.active {
  color: #ffffff;
  background: #be123c;
}

/* High-Contrast Cell Inputs for Table Entry View */
.cell-input {
  width: 100%;
  background-color: #0f172a !important; /* Slate 900 */
  color: #f8fafc !important; /* Bright White */
  border: 1px solid #334155 !important; /* Slate 700 */
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.cell-input:hover {
  border-color: #475569 !important; /* Slate 600 */
  background-color: #131d35 !important;
}

.cell-input:focus {
  border-color: #e11d48 !important; /* Rose 500 */
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.4) !important;
  background-color: #020617 !important; /* Slate 950 */
  color: #ffffff !important;
}

.cell-input::placeholder {
  color: #64748b !important; /* Slate 500 */
  opacity: 0.85;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.6);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* Pulse animation for running task cards */
@keyframes card-glow {
  0%, 100% {
    border-color: rgba(225, 29, 72, 0.3);
  }
  50% {
    border-color: rgba(225, 29, 72, 0.8);
  }
}

.card-running {
  animation: card-glow 2s infinite ease-in-out;
}

/* Settings Sub-Tab Navigation */
.cfg-subtab-btn {
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  background: transparent;
  outline: none;
}

.cfg-subtab-btn:hover {
  color: #e2e8f0;
}

.cfg-subtab-btn.active {
  color: #fb7185 !important; /* Rose 400 */
  border-bottom: 2px solid #f43f5e !important; /* Rose 500 */
}
