/* static/style.css */
:root {
  --primary: #7289DA;
  --secondary: #4CAF50;
  --error: #f44336;
  --background: #2f3136;
  --card-bg: #36393f;
  --text: #dcddde;
}

body {
  font-family: 'Roboto Condensed', 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 10px;
}

.dashboard {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.control-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.control-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
}

.control-btn.running {
  background: var(--secondary);
}

.control-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.info-grid div {
  padding: 0.8rem;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
}

/* Two-column stats grid */
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.stat-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
}

.stat-graph {
  position: relative;
  height: 80px;
  background: rgba(0,0,0,0.2);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.5s ease;
}

/* Bot console log styling */
.log-card pre {
  height: 300px;
  overflow-y: scroll;         /* vertical scroll */
  overflow-x: auto;           /* horizontal scroll if necessary */
  white-space: pre-wrap;      /* wrap long lines */
  word-break: break-word;     /* break extremely long words/urls */
  background: #1e1e1e;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  max-width: 100%;            /* do not exceed parent width */
  box-sizing: border-box;
}

/* Loader animation */
.loader {
  display: none;
  position: absolute;
  right: 1rem;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
