/* Professional Dark Theme with Pink Accents */
:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --surface-hover: #252525;
  --border-color: #333;
  --primary-pink: #d63384; /* Professional deep pink */
  --primary-hover: #c2185b;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-glow: rgba(214, 51, 132, 0.15);
  --success: #2ea043;
  --danger: #da3633;
}

body {
  font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Watermark (Running Strip) */
.watermark-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  opacity: 0.03; /* Subtle watermark */
  transform: rotate(-15deg) scale(1.5);
}

.watermark-strip {
  white-space: nowrap;
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  animation: scrollText 20s linear infinite;
}

.watermark-strip:nth-child(even) {
  animation-direction: reverse;
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: rgba(18, 18, 18, 0.95); /* Slight tint over watermark */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: #fff;
  margin-top: 0;
}

h1 {
  border-bottom: 2px solid var(--primary-pink);
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Components */
.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--primary-pink);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Inputs */
input[type="text"], 
input[type="number"], 
select, 
textarea {
  background: #141414;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-pink);
  color: #fff;
}
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-start { background-color: var(--success); color: white; }
.btn-start:hover { filter: brightness(1.1); }

.btn-stop { background-color: var(--danger); color: white; }
.btn-stop:hover { filter: brightness(1.1); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-pink);
  color: var(--primary-pink);
}
.btn-outline:hover {
  background: var(--accent-glow);
}

/* Status Indicators */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
}
.status-running { color: var(--success); background: rgba(46, 160, 67, 0.1); }
.status-stopped { color: var(--danger); background: rgba(218, 54, 51, 0.1); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: currentColor;
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 30px 20px;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin: 10px 0;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Logs */
.log-window {
  background: #0d0d0d;
  border: 1px solid var(--border-color);
  color: #a0a0a0;
  padding: 15px;
  height: 400px;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  border-radius: 6px;
  line-height: 1.6;
}
.log-entry { 
  margin-bottom: 3px; 
  border-bottom: 1px solid #1a1a1a; 
  padding: 4px 0;
  word-break: break-all;
}
.log-entry.log-error { color: var(--danger); }
.log-entry.log-warn { color: #f0ad4e; }
.log-entry.log-info { color: #5bc0de; }
.log-entry.log-debug { color: #777; }
.log-time { color: #555; margin-right: 10px; }

/* Password input */
input[type="password"] {
  background: #141414;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s;
}
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-pink);
}

/* Code blocks */
code {
  background: #0d0d0d;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: var(--primary-pink);
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: var(--primary-pink);
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Navigation */
.nav-bar {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-brand { font-weight: bold; font-size: 1.2rem; color: #fff; margin-right: 30px; white-space: nowrap; }
.nav-link { color: var(--text-secondary); margin-right: 20px; font-weight: 500; transition: color 0.2s; white-space: nowrap; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--primary-pink); }

/* Server Stats in Navbar */
.nav-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 4px;
  height: 44px;
  flex-shrink: 0;
}
.nav-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
  margin: 0 2px;
}
.nav-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  position: relative;
  min-width: 0;
}
.nav-stat-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.nav-stat-body {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.nav-stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.nav-stat-value {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.nav-stat-sub {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.nav-stat-bar {
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.nav-stat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease, background 0.3s;
  width: 0%;
}
