/* Base Layout */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #020817;
    color: #e5e7eb;
  }
  
  a {
    color: #38bdf8;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  
  /* Navigation Bar */
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #020817;
    border-bottom: 1px solid #111827;
  }
  .nav a {
    margin-left: 15px;
  }
  
  /* Main Content */
  .main {
    padding: 20px;
  }
  
  /* Login Centering */
  .login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
  }
  .center-box {
    width: 100%;
    max-width: 400px;
    padding: 25px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: left;
  }
  
  /* Forms */
  input,
  select,
  button {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    border-radius: 4px;
    border: 1px solid #111827;
    background: #020817;
    color: #e5e7eb;
    font-size: 14px;
  }
  
  button {
    background: #22c55e;
    color: #020817;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
  }
  button:hover {
    background: #16a34a;
  }
  
  label {
    font-size: 14px;
    display: block;
    margin-top: 8px;
  }
  
  /* Tables */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  th,
  td {
    border: 1px solid #111827;
    padding: 8px;
    font-size: 13px;
    text-align: left;
    vertical-align: middle;
  }
  th {
    background: #111827;
    font-weight: bold;
  }
  tr:nth-child(even) {
    background: #0f172a;
  }
  
  /* Flash Messages */
  .flash-container {
    margin-bottom: 10px;
  }
  .flash {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 5px;
  }
  .flash.success {
    background: #166534;
    color: #e5e7eb;
  }
  .flash.danger {
    background: #7f1d1d;
    color: #e5e7eb;
  }
  
  /* Device Status */
  .active {
    font-weight: bold;
    color: #22c55e;
  }
  .offline {
    color: #9ca3af;
  }
  td.active::before {
    content: "● ";
    color: #22c55e;
  }
  td.offline::before {
    content: "● ";
    color: #6b7280;
  }
  
  /* Media Thumbnails */
  .thumb {
    max-height: 40px;
    border-radius: 4px;
    border: 1px solid #1e293b;
  }
  
  /* Flex Layouts (used in playlists) */
  .flex {
    display: flex;
    gap: 20px;
    margin-top: 20px;
  }
  .col {
    flex: 1;
    min-width: 0;
  }
  .media-list {
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
    padding-right: 10px;
  }
  
  /* Utility */
  p {
    font-size: 14px;
    color: #cbd5e1;
  }
  h1,
  h2,
  h3 {
    color: #f1f5f9;
    margin-bottom: 10px;
  }
  small {
    color: #9ca3af;
  }
  