@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background glow */
.bg-radial {
  background-image: 
    radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(13, 202, 240, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(25, 135, 84, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Brand Icon */
.brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Time Badge */
.time-badge {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Summary Bar */
.summary-bar {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

/* Member Avatar Circle */
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6feb, #0d1117);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Live Status Card in Modal */
.live-status-card {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Minimal Card Polish */
.card {
  background-color: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Table styling */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e6edf3;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.025);
  margin-bottom: 0;
}

.table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

/* Pulse animation dot */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 1.8s infinite;
  margin-right: 4px;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Timer Hero Display */
.timer-hero-box {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.timer-digits {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(13, 110, 253, 0.35);
  line-height: 1.1;
  margin: 10px 0;
}

/* Day selector chips */
.day-chip {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  color: #8b949e;
}

.day-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.day-chip.active {
  background: rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
  color: #58a6ff;
}

/* Log Item */
.log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #8b949e;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.log-item.success { border-left-color: #198754; }
.log-item.error { border-left-color: #dc3545; }
.log-item.warning { border-left-color: #ffc107; }
.log-item.info { border-left-color: #0d6efd; }

.log-time {
  color: #8b949e;
  font-family: monospace;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Modal Polish */
.modal-content {
  background-color: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header, .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
}
