:root {
  --primary: #00f2fe;
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-dim: #a0a0a0;
  --success: #2ed573;
  --error: #ff4757;
  --warning: #ffa502;
  --terminal: #0a0a0a;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --surface: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.1);
  --text: #0f172a;
  --text-dim: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  transition: background 0.3s;
}

body {
  background: var(--bg);
  color: var(--text);

  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.broadcast-banner {
  background: var(--warning);
  color: #000;
  padding: 20px 60px 20px 25px;
  text-align: center;
  font-weight: 800;
  position: fixed;
  top: -120px;
  left: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.broadcast-banner.active {
  top: 0;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}

#publicRegistry tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

#publicRegistry td {
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
}

.data-card {
  max-height: 500px;
  overflow-y: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 90vh;
  align-items: center;
  gap: 40px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.auth-card {
  background: var(--surface);
  padding: 45px;
  border-radius: 35px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.input-field {
  width: 100%;
  padding: 18px;
  margin-bottom: 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

.btn-main {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #000;
  font-size: 1rem;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
}

.error-msg {
  color: var(--error);
  background: rgba(255, 71, 87, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--error);
  margin-bottom: 20px;
  text-align: center;
  display: none;
}

.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 40px 0;
  animation: fadeIn 0.8s ease;
}
@media (max-width: 1000px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--surface);
  border-radius: 28px;
  padding: 30px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 20px;
}

@media (max-width: 1000px) {
  .sidebar {
    max-width: 100%;
  }
}
.sidebar-item {
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-dim);
  margin-bottom: 10px;
  list-style: none;
  font-weight: 600;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.active-tab {
  background: var(--primary) !important;
  color: #000 !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--surface);
  padding: 30px;
  border-radius: 25px;
  border: 1px solid var(--border);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
}

.monitor-box {
  background: #000;
  border-radius: 30px;
  border: 1px solid var(--border);
  padding: 25px;
}

#monitorCanvas {
  width: 100%;
  height: 280px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 25px;
}

.terminal-window {
  background: var(--terminal);
  border-radius: 22px;
  padding: 25px;
  font-family: "Fira Code", monospace;
  border: 1px solid var(--border);
  height: 480px;
  overflow-y: auto;
  color: var(--success);
}

.term-input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.term-input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  flex: 1;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
}

.cmd-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 30px;
}

.cmd-entry {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.cmd-name {
  color: var(--primary);
  font-family: "Fira Code", monospace;
  font-weight: 600;
  font-size: 0.95rem;
}

.cmd-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

.data-card {
  background: var(--surface);
  border-radius: 26px;
  border: 1px solid var(--border);
  margin-top: 30px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #111;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 15px;
  border: 3px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Responsive Layout */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .hero h1 {
    font-size: 3.5rem !important;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .hero h1 {
    font-size: 2.5rem !important;
  }
  .auth-card {
    padding: 25px;
  }
  .sidebar {
    position: relative;
    top: 0;
  }
}

/* სტილი შეტყობინებისთვის */
.no-data-msg {
  color: var(--warning);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  border: 1px dashed var(--warning);
  border-radius: 10px;
}
/* ================= MOBILE FIX ================= */

@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    display: flex;
    overflow-x: auto;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .auth-card {
    padding: 25px;
  }

  .container {
    padding: 0 15px;
  }

  .terminal-window {
    height: 300px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 2rem !important;
  }

  .input-field {
    padding: 12px;
  }

  .btn-main {
    padding: 12px;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
