/* Global styles */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #2c3e50, #000000);
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

/* Header */
header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(0,0,0,0.8);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.logo {
  margin-right: 15px;
}
.logo svg {
  width: 50px;
  height: auto;
}
header h1 {
  flex-grow: 1;
  font-size: 1.5em;
  color: #ff4081;
  margin: 0;
}
header a {
  color: #18ffff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
  font-size: 0.8em;
}

/* Relocation banner / notice */
.relocation-banner {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #000;
  font-weight: bold;
}
.relocation-banner a {
  color: #000;
  text-decoration: underline;
}

.relocation-note {
  color: #000;
  background: linear-gradient(135deg, #ffb300, #ff8f00);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 8px 0 16px 0;
  text-align: center;
  font-size: 1.3em;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.relocation-note a {
  color: #000;
  text-decoration: underline;
  font-weight: 900;
}

/* Stats Card on Main Page */
.stats-card {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.stats-card h2 {
  color: #ffeb3b;
  margin-bottom: 10px;
}
.total-daily {
  font-size: 3em;
  color: #00e676;
}
.breakdown {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}
.stat-item {
  margin: 0 10px;
  display: inline-block;
  vertical-align: top;
  text-align: center;
}
.stat-item .daily {
  display: inline;
}
.stat-item .forever {
  display: block;
  font-size: 0.8em;
  line-height: 1em;
  color: #cccccc;
}
.forever-total {
  font-size: 0.45em;
  color: #cccccc;
  vertical-align: top;
}

/* Increment Buttons */
.increment-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.increment-group {
  flex: 1 1 200px;
  text-align: center;
}
.incrementBtn {
  background-color: #ff4081;
  border: none;
  padding: 15px 30px;
  font-size: 1.5em;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  color: black;
}
.incrementBtn:hover {
  background-color: #f50057;
  transform: scale(1.05);
}
.incrementBtn:disabled {
  background-color: #666 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
.incrementBtn:disabled:hover {
  background-color: #666 !important;
  transform: none !important;
}
.countdown-area {
  display: inline-block;
  margin-top: 5px;
  font-size: 1.5em;
}
/* "Angre" button styling (same as increment button) */
.cancelBtn {
  background-color: #ff4081;
  border: none;
  padding: 15px 30px;
  font-size: 1.5em;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.cancelBtn:hover {
  background-color: #f50057;
  transform: scale(1.05);
}

/* User Stats Table */
.user-stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
}
.user-stats-table th,
.user-stats-table td {
  border: 1px solid #444;
  padding: 8px;
  text-align: center;
}
.user-stats-table th {
  background-color: #333;
  color: #ffeb3b;
}

/* Add Multiple Section */
.add-multiple {
  text-align: center;
  margin: 20px 0;
}
.add-multiple select,
.add-multiple button,
.add-multiple span {
  font-size: 1.2em;
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 50px;
}
.add-multiple button {
  background-color: #18ffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.add-multiple button:hover {
  background-color: #00e676;
}
.add-multiple button:disabled {
  background-color: #666 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
.add-multiple button:disabled:hover {
  background-color: #666 !important;
}
.add-multiple #addMultipleBtn:disabled {
  background-color: #666 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
.add-multiple #addMultipleBtn:disabled:hover {
  background-color: #666 !important;
}

/* Log Entries */
.log-entries {
  margin: 30px auto;
  max-width: 600px;
}
.log-entries h2 {
  text-align: center;
  color: #ffeb3b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.log-link {
  font-size: 0.8em;
  color: #18ffff;
  text-decoration: none;
}
.log-link:hover {
  text-decoration: underline;
}
.log-entries ul {
  list-style: none;
  padding: 0;
}
.log-entries li {
  background: rgba(0,0,0,0.5);
  margin: 5px 0;
  padding: 8px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow: auto;
}
.modal-content {
  background-color: rgba(0,0,0,0.85);
  margin: 20% auto;
  padding: 20px;
  border: 1px solid #ff4081;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
}
.modal-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #ffeb3b;
}
.modal-content button {
  margin: 10px;
  padding: 10px 25px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}
#confirmYes {
  background-color: #00e676;
  color: #000;
}
#confirmYes:hover {
  background-color: #00c853;
}
#confirmNo {
  background-color: #ff4081;
  color: #fff;
}
#confirmNo:hover {
  background-color: #f50057;
}

/* Login and Change Password Containers */
.login-container, .change-password-container {
  max-width: 400px;
  margin: 100px auto;
  background-color: rgba(0,0,0,0.85);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

.login-container h1, .change-password-container h1 {
  color: #ffeb3b;
  margin-bottom: 25px;
  font-size: 2em;
}

.login-container input, .change-password-container input {
  width: 80%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container input:focus, .change-password-container input:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.login-container input[name="username"] {
  text-transform: lowercase;
}

.login-container button, .change-password-container button {
  width: 85%;
  padding: 12px;
  background: linear-gradient(135deg, #00e676, #00c853);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #000;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-container button:hover, .change-password-container button:hover {
  background: linear-gradient(135deg, #00c853, #00a84d);
  transform: translateY(-1px);
}

.error {
  color: #ff6b6b;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 6px;
  border-left: 4px solid #ff6b6b;
}

/* Responsive Design */
@media (max-width: 600px) {
  .login-container, .change-password-container, .modal-content {
    width: 90%;
  }
  .users-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .increment-buttons {
    flex-direction: row;
    gap: 10px;
  }
  .user-stats-table th, .user-stats-table td {
    font-size: 0.8em;
  }
  .global-counter {
    font-size: 5vw;
  }
}

/* Full Stats Page */
.stats-full {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.stats-section {
  margin-bottom: 30px;
}
.stats-section h2 {
  color: #ffeb3b;
  margin-bottom: 10px;
}
.stats-values {
  background: rgba(0,0,0,0.8);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}
.stat-total {
  font-size: 2em;
  color: #00e676;
  margin-bottom: 5px;
}
.stat-breakdown {
  font-size: 1.5em;
  color: #ffffff;
}

/* Leaderboards */
.leaderboard-table,
.stats-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  margin: 20px 0;
}

.leaderboard-table thead,
.stats-leaderboard-table thead {
  background: linear-gradient(135deg, #1a1a1a, #000000);
}

.leaderboard-table th,
.stats-leaderboard-table th {
  padding: 16px 12px;
  text-align: center;
  color: #ffff;
  font-weight: bold;
  border-bottom: 2px solid #444;
  font-size: 1.1em;
}

.leaderboard-table td,
.stats-leaderboard-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  font-size: 1.1em;
}

.leaderboard-row,
.stats-leaderboard-row {
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.leaderboard-row:hover,
.stats-leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

.leaderboard-row.current-user {
  background: rgba(255, 235, 59, 0.15);
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.3);
}

.leaderboard-row.current-user td {
  color: #ffeb3b;
}

.leaderboard-row.current-user .total-col {
  color: #ffffff !important;
}

.leaderboard-row.rank-1,
.stats-leaderboard-row.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
}

.leaderboard-row.rank-2,
.stats-leaderboard-row.rank-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(169, 169, 169, 0.1));
}

.leaderboard-row.rank-3,
.stats-leaderboard-row.rank-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.1));
}

/* Column sizing */
.rank-col {
  width: 80px;
  font-size: 1.3em;
  font-weight: bold;
}

.name-col {
  width: auto;
  text-align: left !important;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.2em;
}

.beer-col,
.wine-col,
.drinks-col {
  width: 65px;
  font-size: 1.05em;
  padding: 14px 8px !important;
}

.score-col {
  width: 90px;
  font-size: 1.4em;
  font-weight: bold;
  color: #00e676;
}

.total-col {
  width: 90px;
  font-size: 1.2em;
  color: #cccccc;
}

/* Stats page specific styling */
.stats-leaderboard-table {
  margin: 15px auto;
  max-width: 700px;
}

/* Responsive design */
@media (max-width: 768px) {
  .leaderboard {
    margin: 15px 10px;
    padding: 15px;
  }
  
  .leaderboard-table th,
  .stats-leaderboard-table th {
    padding: 12px 8px;
    font-size: 1em;
  }
  
  .leaderboard-table td,
  .stats-leaderboard-table td {
    padding: 12px 8px;
    font-size: 1em;
  }
  
  .rank-col {
    width: 60px;
    font-size: 1.1em;
  }
  
  .name-col {
    font-size: 1em;
  }
  
  .beer-col,
  .wine-col,
  .drinks-col {
    width: 55px;
    font-size: 0.95em;
    padding: 12px 6px !important;
  }
  
  .score-col {
    width: 70px;
    font-size: 1.2em;
  }
  
  .total-col {
    width: 70px;
    font-size: 1.05em;
  }
}

@media (max-width: 480px) {
  .leaderboard {
    margin: 10px 5px;
    padding: 10px;
  }
  
  .leaderboard-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }
  
  .leaderboard-table th,
  .stats-leaderboard-table th {
    padding: 10px 6px;
    font-size: 0.9em;
  }
  
  .leaderboard-table td,
  .stats-leaderboard-table td {
    padding: 10px 6px;
    font-size: 0.9em;
  }
  
  .rank-col {
    width: 45px;
    font-size: 1em;
  }
  
  .name-col {
    font-size: 0.9em;
  }
  
  .beer-col,
  .wine-col,
  .drinks-col {
    width: 45px;
    font-size: 0.8em;
    padding: 10px 4px !important;
  }
  
  .score-col {
    width: 55px;
    font-size: 1.05em;
  }
  
  .total-col {
    width: 55px;
    font-size: 0.95em;
  }
}

/* Admin Page Styles */
.admin-section {
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #444;
}

.section-header h2 {
  color: #ffeb3b;
  margin: 0;
  font-size: 1.5em;
}

/* Admin Table */
.users-table-container {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.admin-table thead {
  background: linear-gradient(135deg, #1a1a1a, #000000);
}

.admin-table th {
  padding: 16px 20px;
  text-align: left;
  color: #ffffff;
  font-weight: bold;
  border-bottom: 2px solid #444;
  font-size: 1em;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
  font-size: 1em;
}

.admin-table tbody tr {
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.username-cell strong {
  color: #ffffff;
  font-size: 1.1em;
}

/* Badges */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-admin {
  background: linear-gradient(135deg, #ff4081, #f50057);
  color: #ffffff;
}

.badge-group-admin {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #ffffff;
}

.badge-user {
  background: linear-gradient(135deg, #666, #444);
  color: #ffffff;
}

/* Status Indicators */
.status-indicator {
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: bold;
}

.status-success {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
}

.status-warning {
  background: rgba(255, 235, 59, 0.2);
  color: #ffeb3b;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-edit {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #000;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00c853, #00a84d);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, #666, #444);
  color: #fff;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #777, #555);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff5252, #e53935);
  transform: translateY(-1px);
}

.btn-edit {
  background: linear-gradient(135deg, #18ffff, #00e5ff);
  color: #000;
  font-size: 0.85em;
  padding: 6px 12px;
}

.btn-edit:hover {
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  transform: translateY(-1px);
}

/* Admin Modal */
.admin-modal {
  max-width: 500px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px;
  border-bottom: 1px solid #444;
}

.modal-header h3 {
  color: #ffeb3b;
  margin: 0;
  font-size: 1.3em;
}

.modal-close {
  color: #aaa;
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #fff;
}

/* Form Groups */
.form-group {
  margin: 20px 25px;
}

.form-group label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1em;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.form-group input[readonly] {
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
}

/* Checkbox Groups */
.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 35px;
}

.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #555;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked ~ .checkmark {
  background: #00e676;
  border-color: #00e676;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-group input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

/* Modal Actions */
.modal-actions {
  padding: 20px 25px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

/* Log Container */
.log-container {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.log-container textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  padding: 15px;
  resize: vertical;
  box-sizing: border-box;
}

.log-container textarea:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

/* Notifications */
.admin-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.notification-success {
  background: linear-gradient(135deg, #00e676, #00c853);
  border-left: 4px solid #00a84d;
}

.notification-error {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  border-left: 4px solid #e53935;
}

.notification-info {
  background: linear-gradient(135deg, #18ffff, #00e5ff);
  color: #000;
  border-left: 4px solid #00b8d4;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-section {
    padding: 0 10px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.9em;
  }
  
  .admin-modal {
    max-width: 90%;
    margin: 10% auto;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .admin-table {
    font-size: 0.8em;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
  }
  
  .btn-edit {
    font-size: 0.75em;
    padding: 4px 8px;
  }
  
  .badge {
    font-size: 0.7em;
    padding: 2px 8px;
  }
}

/* Admin Table Extensions */
.groups-table-container {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}

.groups-cell {
  max-width: 200px;
  font-size: 0.9em;
}

.no-groups {
  color: #888;
  font-style: italic;
}

.group-id-cell strong {
  color: #18ffff;
  font-family: monospace;
}

.group-name-cell {
  font-weight: bold;
  color: #ffffff;
}

.group-description-cell {
  color: #cccccc;
  font-size: 0.9em;
  max-width: 250px;
}

.group-description-cell em {
  color: #888;
}

.member-count {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

/* Checkbox Lists */
.checkbox-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-list .checkbox-group {
  margin: 8px 0;
}

.checkbox-list .checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-list .checkbox-group label {
  font-size: 0.9em;
  padding-left: 30px;
}

.checkbox-list .checkmark {
  left: 0;
  top: 2px;
}

/* Form Styling Extensions */
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.form-group textarea:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

/* Group Modal Specific */
#groupModal textarea {
  min-height: 80px;
}

#groupId[readonly] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #aaa !important;
}

/* Responsive Extensions */
@media (max-width: 768px) {
  .groups-cell,
  .group-description-cell {
    font-size: 0.8em;
  }
  
  .checkbox-list {
    max-height: 150px;
  }
}

/* Settings Modal */
.settings-modal {
  max-width: 500px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.settings-content {
  padding: 20px 25px;
}

.settings-section {
  margin-bottom: 20px;
}

.settings-section h4 {
  color: #ffeb3b;
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.settings-description {
  color: #cccccc;
  font-size: 0.9em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.settings-checkbox-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.settings-checkbox-list .checkbox-group {
  margin: 10px 0;
}

.settings-checkbox-list .checkbox-group:last-child {
  margin-bottom: 0;
}

.settings-checkbox-list .checkbox-group label {
  font-size: 1em;
  padding-left: 35px;
  color: #ffffff;
}

.settings-actions {
  padding: 15px 25px 25px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid #444;
}

.no-members {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* JSON Editor Styles */
.json-info {
  background: rgba(255, 235, 59, 0.1);
  border: 1px solid rgba(255, 235, 59, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.json-info p {
  margin: 0;
  color: #ffeb3b;
  font-size: 0.9em;
}

.json-info strong {
  color: #ff6b6b;
}

/* Full-screen JSON Editor Modal */
.json-editor-modal {
  z-index: 10000;
}

.json-editor-content {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  background: rgba(0, 0, 0, 0.98);
  border: 2px solid #444;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.json-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 2px solid #444;
  background: linear-gradient(135deg, #1a1a1a, #000000);
  border-radius: 10px 10px 0 0;
}

.json-editor-header h3 {
  color: #ffeb3b;
  margin: 0;
  font-size: 1.5em;
}

.json-editor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.json-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.json-editor-help {
  margin-bottom: 15px;
}

.json-help-details {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0;
}

.json-help-details summary {
  padding: 10px 15px;
  cursor: pointer;
  color: #18ffff;
  font-weight: bold;
  -webkit-user-select: none;
  user-select: none;
  transition: all 0.3s ease;
}

.json-help-details summary:hover {
  background: rgba(24, 255, 255, 0.1);
}

.json-help-details[open] summary {
  border-bottom: 1px solid #444;
  background: rgba(24, 255, 255, 0.05);
}

.json-help-content {
  padding: 15px;
  font-size: 0.9em;
  line-height: 1.4;
}

.json-help-content p {
  margin: 0 0 10px 0;
  color: #e0e0e0;
}

.json-help-content ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
  color: #cccccc;
}

.json-help-content li {
  margin-bottom: 5px;
}

.json-help-content code {
  background: rgba(255, 255, 255, 0.1);
  color: #00e676;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85em;
}

.json-status {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: bold;
}

.json-status.valid {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
}

.json-status.invalid {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.json-status.checking {
  background: rgba(255, 235, 59, 0.2);
  color: #ffeb3b;
}

#usersJsonEditor {
  flex: 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 20px;
  resize: none;
  overflow: auto;
  tab-size: 2;
  white-space: pre;
  word-wrap: break-word;
  box-sizing: border-box;
}

#usersJsonEditor:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.json-editor-actions {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #444;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 10px 10px;
}

/* Responsive JSON Editor */
@media (max-width: 768px) {
  .json-editor-content {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .json-editor-header {
    padding: 15px 20px;
  }
  
  .json-editor-header h3 {
    font-size: 1.3em;
  }
  
  .json-editor-body {
    padding: 15px;
  }
  
  .json-editor-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  #usersJsonEditor {
    font-size: 13px;
    padding: 15px;
  }
  
  .json-editor-actions {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
}
