/* =========================
   General Dark Theme
   ========================= */
   body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 2rem;
  }
  
  h1 {
    text-align: center;
    color: #fff;
  }
  
  /* =========================
     Intro / Guidelines
     ========================= */
  .intro {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
  }
  
  .intro h2 {
    margin-top: 0;
    color: #00bfff;
  }
  
  .intro a {
    color: #4fc3f7;
    text-decoration: underline;
  }
  
  .intro a:hover {
    color: #81d4fa;
  }
  
  /* =========================
     Messages
     ========================= */
  #messages {
    margin-bottom: 1rem;
  }
  
  .notice {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
  }
  
  .notice.success {
    background-color: #1b4332;
    border: 1px solid #2d5a47;
    color: #95d5b2;
  }
  
  .notice.error {
    background-color: #4a1a1a;
    border: 1px solid #663333;
    color: #ff8a80;
  }
  
  /* =========================
     Forms
     ========================= */
  form {
    margin-bottom: 2rem;
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  input[type="text"],
  textarea,
  select {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #222;
    color: #e0e0e0;
    box-sizing: border-box;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: #00bfff;
    outline: none;
  }
  
  /* =========================
     Buttons
     ========================= */
  button {
    background-color: #00bfff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button:hover {
    background-color: #0095d1;
  }
  
  /* =========================
     Strat Categories
     ========================= */
  #strat-categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #444;
  }
  
  .strat-category {
    display: flex;
    flex-direction: column;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .strat-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }
  
  .category-header {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #444;
    font-size: 1rem;
  }

  #uncheckAllBtn {
    background-color: #00bfff;      /* blue */
    color: #fff;                     /* white text for contrast */
    border: none;
    padding: 0.6rem 1.2rem;          /* comfortable size */
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
  }
  
  #uncheckAllBtn:hover {
    background-color: #33ccff;       /* slightly lighter blue on hover */
    transform: translateY(-1px);     /* small lift on hover */
  }
  
  .strat-category.basic .category-header    { background-color: #1976d2; } /* blue */
  .strat-category.medium .category-header   { background-color: #00acc1; } /* cyan */
  .strat-category.hard .category-header     { background-color: #43a047; } /* green */
  .strat-category.veryhard .category-header { background-color: #fbc02d; } /* yellow */
  .strat-category.expert .category-header   { background-color: #fb8c00; } /* orange */
  .strat-category.extreme .category-header  { background-color: #e53935; } /* red */
  .strat-category.insane .category-header   { background-color: #c62828; } /* deeper red */
  
  /* Strat checkboxes */
  .strat-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .strat-checkboxes label {
    display: flex;
    align-items: center;
    background-color: rgba(30,30,30,0.7);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
  }
  
  .strat-checkboxes label:hover {
    background-color: rgba(42,42,42,0.9);
    border-color: #555;
    transform: translateX(2px);
  }
  
  .strat-checkboxes input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: #00bfff;
    flex-shrink: 0;
  }
  
  .strat-checkboxes input[type="checkbox"]:checked + span {
    color: #00bfff;
    font-weight: 600;
  }
  
  .strat-checkboxes label span {
    transition: color 0.2s;
  }
  
  /* Scrollbars for strat lists */
  .strat-checkboxes::-webkit-scrollbar {
    width: 6px;
  }
  
  .strat-checkboxes::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
  }
  
  .strat-checkboxes::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
  }
  
  .strat-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #666;
  }
  
  /* =========================
     Room Picker
     ========================= */
  .room-picker-container {
    position: relative;
    width: 100%;
  }
  
  #roomDropdown {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 2px solid #555;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
  }
  
  #roomDropdown.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .room-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(68,68,68,0.3);
    transition: all 0.2s ease;
  }
  
  .room-option:last-child {
    border-bottom: none;
  }
  
  .room-option:hover,
  .room-option.highlighted {
    background-color: #2d2d35;
    color: #00bfff;
    transform: translateX(2px);
  }
  
  /* Scrollbar for room dropdown */
  #roomDropdown::-webkit-scrollbar {
    width: 6px;
  }
  
  #roomDropdown::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
  }
  
  #roomDropdown::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
  }
  
  #roomDropdown::-webkit-scrollbar-thumb:hover {
    background: #666;
  }
  
  /* =========================
     Search & File List
     ========================= */
  #search {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #222;
    color: #e0e0e0;
  }
  
  #file-list .file-item {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 0.7rem;
    border-radius: 8px;
    background-color: #1e1e1e;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  #file-list .file-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0,191,255,0.5);
  }
  
  .file-item strong {
    color: #00bfff;
  }
  
  .file-item em {
    color: #aaa;
  }
  
  .file-item a {
    color: #4fc3f7;
    text-decoration: none;
  }
  
  .file-item a:hover {
    color: #81d4fa;
    text-decoration: underline;
  }
  
  .muted {
    color: #888;
    text-align: center;
    padding: 2rem;
    font-style: italic;
  }
  
  /* =========================
     Responsive
     ========================= */
  @media (max-width: 768px) {
    #strat-categories-container {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .strat-checkboxes {
      max-height: 180px;
    }
  }
  
  @media (max-width: 480px) {
    #strat-categories-container {
      grid-template-columns: 1fr;
    }
    .strat-checkboxes {
      max-height: 150px;
    }
    body {
      margin: 1rem;
    }
  }
  