/* Panou Executiv - Stiluri Semantice & WCAG AA 4.5:1 */
:root {
  --bg-main: #131314;
  --bg-card: #1e1f20;
  --bg-card-hover: #252729;
  --bg-card-active: #2c2e30;
  --border-color: #333538;
  --text-main: #f1f3f4;
  --text-muted: #9aa0a6;
  --accent-blue: #8ab4f8;
  --accent-green: #81c995;
  --accent-amber: #fdd663;
  --accent-red: #f28b82;
  --accent-purple: #c58af9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Pulsing Dots */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-dot.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px rgba(129, 201, 149, 0.6);
  animation: pulse-green 2s infinite;
}
.status-dot.warning {
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px rgba(253, 214, 99, 0.6);
}
.status-dot.offline {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px rgba(242, 139, 130, 0.6);
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(129, 201, 149, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(129, 201, 149, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(129, 201, 149, 0); }
}

/* Cards & Badges */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.card:hover {
  border-color: #4b4e52;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: rgba(129, 201, 149, 0.15); color: var(--accent-green); border: 1px solid rgba(129, 201, 149, 0.3); }
.badge-blue { background: rgba(138, 180, 248, 0.15); color: var(--accent-blue); border: 1px solid rgba(138, 180, 248, 0.3); }
.badge-amber { background: rgba(253, 214, 99, 0.15); color: var(--accent-amber); border: 1px solid rgba(253, 214, 99, 0.3); }
.badge-red { background: rgba(242, 139, 130, 0.15); color: var(--accent-red); border: 1px solid rgba(242, 139, 130, 0.3); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary {
  background-color: #1a73e8;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #1765cc;
}
.btn-secondary {
  background-color: #282a2c;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: #333538;
  border-color: #4b4e52;
}
.btn-danger {
  background-color: rgba(242, 139, 130, 0.15);
  color: var(--accent-red);
  border-color: rgba(242, 139, 130, 0.4);
}
.btn-danger:hover {
  background-color: rgba(242, 139, 130, 0.25);
  border-color: var(--accent-red);
}

/* Tabs */
.tab-btn {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover {
  color: var(--text-main);
}
.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

/* Console logs */
.console-box {
  background-color: #0b0b0c;
  border: 1px solid #282a2c;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  padding: 0.75rem;
  color: #34d399;
  max-height: 220px;
  overflow-y: auto;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}
td {
  padding: 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(51, 53, 56, 0.5);
}
tr:last-child td {
  border-bottom: none;
}
