/* Root theme colors */
:root {
  --accent-color: #2ca8ff;  /* WireWave branding accent (bright blue) */
}

/* Global basics */
html, body {
  margin: 0;
  padding: 0;
  background: #181818;
  color: #ccc;
  font-family: sans-serif;
}

/* Top bar */
.topbar {
  background: #181818;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.topbar > * {
  margin-left: 15px;
}
#clock {
  font-family: monospace;
}
#logout-btn {
  color: #ccc;
}
#logout-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* Sidebar */
#sidebar {
  background: #202020;
  color: #ccc;
  min-height: 100vh;
  width: 220px;
}
#sidebar .brand {
  text-align: center;
  padding: 20px 0;
}
#sidebar .brand .logo {
  max-width: 150px;
  height: auto;
}
#sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#sidebar ul li {
  margin: 5px 0;
}
#sidebar ul li a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
}
#sidebar ul li a:hover {
  background: #333;
  color: #fff;
}
#sidebar ul li a.active {
  background: #333;
  color: #fff;
  border-left: 4px solid var(--accent-color);
}
#sidebar ul li a.flashing {
  animation: flash 1s infinite;
}
@keyframes flash {
  0%, 100% { background-color: #333; color: #fff; }
  50% { background-color: var(--accent-color); color: #000; }
}

/* Main content area */
.main {
  display: flex;
}
.content {
  flex: 1;
  background: #282828;
  padding: 20px;
}
.tab-content h2 {
  margin-top: 0;
}

/* Forms and controls */
.client-controls, .ticket-controls {
  margin: 10px 0;
}
.client-controls input, .ticket-controls input {
  width: 300px;
  margin-right: 10px;
}
.ticket-controls select {
  margin-left: 5px;
}
.add-client-form {
  background: #222;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 4px;
  max-width: 500px;
}
.add-client-form input {
  display: block;
  width: 100%;
  margin: 5px 0;
}
.add-client-form h3 {
  margin: 0 0 10px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.table th, .table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #444;
}
.table th {
  background: #333;
  font-weight: bold;
}
.table tr:nth-child(even) {
  background: #242424;
}

/* Form elements (inputs, selects, buttons) */
input[type=text], input[type=password], select {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 6px;
  border-radius: 4px;
}
input::placeholder {
  color: #aaa;
}
button, .btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover, .btn:hover {
  filter: brightness(0.9);
}
.error-message {
  color: #f44336;  /* red for error text */
  margin-top: 8px;
}

/* Google Translate widget (dark theme adjustments) */
#google_translate_element select.goog-te-combo {
  background-color: #333;
  color: #fff;
  border: none;
}
#google_translate_element .goog-te-gadget {
  color: #ccc;
}
#google_translate_element .goog-logo-link {
  display: none !important;
}
