* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --promote-color: #9b59b6;
  --elder-color: #e67e22;
  --report-color: #e74c3c;
  --dark-bg: #1a1a2e;
  --card-bg: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  --text-muted: #b8b8b8;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
}

.container {
  max-width: 100%;
  min-height: 100vh;
}

/* Login Screen */
.login-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px;
  background: rgba(26, 26, 46, 0.95);
}

.login-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  max-width: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(10px);
}

.login-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.login-title {
  font-size: 1.4em;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #4ecdc4, #45b7d1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-subtitle {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.85em;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.85em;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  font-size: 0.95em;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn i {
  margin-right: 8px;
}

.error-message {
  color: var(--danger-color);
  margin-top: 12px;
  padding: 8px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(231, 76, 60, 0.3);
  display: none;
  font-size: 0.85em;
}

/* Dashboard */
.dashboard {
  display: none;
  min-height: 100vh;
}

/* Header */
.dashboard-header {
  background: var(--card-bg);
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-bell {
  position: relative;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 15px;
  background: var(--dark-bg);
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.notification-dropdown.show {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-item {
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-item:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateX(5px);
}

.notification-item.new {
  border-left-color: var(--danger-color);
  background: rgba(231, 76, 60, 0.05);
}

.notification-time {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 4px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details h2 {
  font-size: 1.1em;
  margin-bottom: 3px;
}

.user-details p {
  color: var(--text-muted);
  font-size: 0.8em;
}

.logout-btn {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
  border: 1px solid rgba(231, 76, 60, 0.3);
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85em;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(231, 76, 60, 0.4);
  transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.quick-action-btn {
  flex: 1;
  min-width: 150px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quick-action-btn.chat-btn {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
}

.quick-action-btn.report-btn {
  background: linear-gradient(135deg, var(--report-color), #c0392b);
  color: white;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.unread-badge {
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  font-weight: bold;
  margin-left: 5px;
}

/* Main Content */
.dashboard-content {
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.2em;
  margin: 20px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title i {
  margin-right: 8px;
  color: var(--primary-color);
}

/* Jobs Container */
.jobs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .jobs-container {
    grid-template-columns: 1fr;
  }
}

/* Job Card */
.job-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.job-card.ban-job {
  border-color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.job-card.demote-job {
  border-color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.job-card.promote-coleader-job {
  border-color: var(--promote-color);
  border-left: 4px solid var(--promote-color);
}

.job-card.promote-elder-job {
  border-color: var(--elder-color);
  border-left: 4px solid var(--elder-color);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.job-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-type.ban {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
}

.job-type.demote {
  background: rgba(243, 156, 18, 0.2);
  color: var(--warning-color);
}

.job-type.promote-coleader {
  background: rgba(155, 89, 182, 0.2);
  color: var(--promote-color);
}

.job-type.promote-elder {
  background: rgba(230, 126, 34, 0.2);
  color: var(--elder-color);
}

.job-title {
  font-size: 1.1em;
  margin-bottom: 4px;
}

.job-description {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.85em;
}

.player-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

.player-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9em;
}

.player-row:last-child {
  border-bottom: none;
}

.player-label {
  color: var(--text-muted);
  font-size: 0.85em;
}

.player-value {
  font-weight: 600;
  font-size: 0.9em;
}

.kick-instruction {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  text-align: center;
  font-size: 0.9em;
}

.kick-instruction i {
  color: var(--danger-color);
  font-size: 1em;
  margin-right: 8px;
}

.instruction-text {
  color: var(--danger-color);
  font-weight: 600;
}

.job-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.demote-btn {
  background: linear-gradient(135deg, var(--warning-color), #e67e22);
  color: white;
}

.demote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
}

.promote-coleader-btn {
  background: linear-gradient(135deg, var(--promote-color), #8e44ad);
  color: white;
}

.promote-coleader-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(155, 89, 182, 0.4);
}

.promote-elder-btn {
  background: linear-gradient(135deg, var(--elder-color), #d35400);
  color: white;
}

.promote-elder-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(230, 126, 34, 0.4);
}

.undo-btn {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  color: white;
  margin-top: 5px;
  font-size: 0.8em;
  padding: 8px;
}

.undo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(149, 165, 166, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow-y: auto;
}

.modal-content {
  background: var(--dark-bg);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.3em;
  color: var(--text-color);
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--danger-color);
}

.search-box {
  position: relative;
  margin-bottom: 15px;
}

.search-box input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  font-size: 0.95em;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.players-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.player-select-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.player-select-item:hover {
  background: rgba(52, 152, 219, 0.1);
}

.player-select-item.selected {
  background: rgba(52, 152, 219, 0.2);
  border-left: 3px solid var(--primary-color);
}

.player-select-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95em;
}

.player-select-tag {
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  font-size: 0.95em;
  font-family: inherit;
  min-height: 100px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  font-size: 0.9em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Chat Modal Styles */
.chat-modal .modal-content {
  max-width: 500px;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
  word-wrap: break-word;
  font-size: 0.9em;
}

.chat-message.user {
  background: linear-gradient(135deg, #3498db, #2980b9);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-message.admin {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-message.system {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  align-self: center;
  max-width: 90%;
  text-align: center;
}

.message-sender {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.85em;
}

.message-content {
  font-size: 0.9em;
  line-height: 1.3;
}

.message-time {
  font-size: 0.7em;
  text-align: right;
  margin-top: 4px;
  opacity: 0.8;
}

.chat-input-container {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  font-size: 0.95em;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chat-send-btn {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
}

.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 30px;
  display: none;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid var(--primary-color);
  width: 35px;
  height: 35px;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.95em;
}

/* Success Notification */
.notification {
  position: fixed;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--success-color), #27ae60);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateX(150%);
  transition: transform 0.3s ease;
  font-size: 0.9em;
}

.notification.show {
  transform: translateX(0);
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .login-card {
    padding: 15px;
    margin: 10px;
  }

  .dashboard-header {
    padding: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .user-details h2 {
    font-size: 1em;
  }

  .logout-btn {
    width: 100%;
    text-align: center;
    padding: 8px;
  }

  .dashboard-content {
    padding: 12px;
  }

  .job-card {
    padding: 12px;
  }

  .job-actions {
    flex-direction: column;
  }

  .modal-content {
    padding: 15px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 10px;
  }

  .chat-container {
    height: 250px;
    padding: 10px;
  }

  .chat-message {
    max-width: 90%;
    padding: 8px 10px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-action-btn {
    min-width: 100%;
    padding: 10px;
  }

  .jobs-container,
  .notes-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .notification-dropdown {
    width: 280px;
    right: 10px;
  }
}

/* Prevent zoom on input focus on mobile */
@media (max-width: 768px) {

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Real-time Update Indicator */
.update-indicator {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75em;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

/* Section Hidden Class */
.section-hidden {
  display: none !important;
}

/* No Jobs Message */
.no-jobs-message {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-style: italic;
  grid-column: 1 / -1;
  font-size: 0.9em;
}

/* Tracking Styles */
.tracking-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success-color);
  color: white;
  font-size: 0.7em;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.online-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.online-indicator.online {
  background: var(--success-color);
  animation: pulse 2s infinite;
}

.online-indicator.offline {
  background: var(--text-muted);
}

/* Activity item hover */
.player-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: center;
}

/* Co-Leader Status Card */
.coleader-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coleader-status-item:last-child {
  border-bottom: none;
}

.coleader-status-name {
  font-weight: 600;
  font-size: 0.9em;
}

.coleader-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.private-message-btn {
  background: rgba(52, 152, 219, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.7em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.private-message-btn:hover {
  background: rgba(52, 152, 219, 0.3);
}

/* Private Chat Modal */
.private-chat-modal .modal-content {
  max-width: 500px;
}

.chat-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Investigation Section */
.investigation-item {
  background: rgba(231, 76, 60, 0.05);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.investigation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Undo Section */
.undo-list {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
}

.undo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* Private Messages Inbox */
.inbox-item {
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.inbox-item.unread {
  background: rgba(52, 152, 219, 0.1);
  border-left: 3px solid var(--danger-color);
}

.inbox-item:hover {
  background: rgba(52, 152, 219, 0.15);
}

.inbox-sender {
  font-weight: 600;
  color: var(--primary-color);
}

.inbox-preview {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 4px;
}

.inbox-time {
  font-size: 0.75em;
  color: var(--text-muted);
  text-align: right;
  margin-top: 5px;
}

/* Add these styles at the end of testing2.css */

/* Fix for report player selection */
.report-player-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.report-player-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.selected-players-list {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.selected-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
}

.remove-player-btn {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-player-btn:hover {
  background: rgba(231, 76, 60, 0.4);
}

.selection-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

/* Fix undo button styling */
#undoButton {
  background: linear-gradient(135deg, var(--warning-color), #e67e22);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

#undoButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
}

/* Co-leader selection for private chat */
.coleader-selection-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.coleader-select-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coleader-select-item:hover {
  background: rgba(52, 152, 219, 0.1);
}

.coleader-select-item.selected {
  background: rgba(52, 152, 219, 0.2);
  border-left: 3px solid var(--primary-color);
}

.coleader-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
}

.coleader-status-indicator.online {
  color: var(--success-color);
}

.coleader-status-indicator.offline {
  color: var(--text-muted);
}

/* Player selection modal improvements */
.player-selection-modal .modal-content {
  max-width: 400px;
}

/* Co-leader list in private chat modal */
.private-chat-coleaders {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

/* Add these styles at the end of the CSS file */

/* Notification Bell Animation */
.notification-bell.has-unread {
  animation: pulse 1.5s infinite;
  color: var(--danger-color);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Dropdown Sections */
.collapsible-section {
  margin: 15px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
  background: var(--card-bg);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.section-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.section-header h4 {
  margin: 0;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header i {
  transition: transform 0.3s ease;
}

.section-header.collapsed i {
  transform: rotate(-90deg);
}

.section-content {
  background: rgba(0, 0, 0, 0.2);
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.section-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
}

/* Top Performing Co-Leader */
.top-performer-card {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.1));
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.top-performer-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 10px;
}

.top-performer-name {
  font-size: 1.2em;
  font-weight: bold;
  margin: 5px 0;
  color: #f39c12;
}

.top-performer-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  font-size: 0.9em;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--success-color);
}

.stat-label {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Notification Modal */
.notification-modal .modal-content {
  max-width: 400px;
}

.notification-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.notification-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.notification-modal-title {
  font-size: 1.3em;
  margin: 0;
}

.notification-modal-body {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.notification-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-player:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.notification-time {
  font-size: 0.8em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Co-Leader Selection Modal for Private Chat */
.coleader-selection-modal .modal-content {
  max-width: 400px;
}

.coleader-selection-list {
  max-height: 300px;
  overflow-y: auto;
  margin: 15px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.coleader-select-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coleader-select-item:hover {
  background: rgba(52, 152, 219, 0.1);
}

.coleader-select-item.selected {
  background: rgba(52, 152, 219, 0.2);
  border-left: 3px solid var(--primary-color);
}

.coleader-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coleader-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.coleader-name {
  font-weight: 600;
  font-size: 0.95em;
}

.coleader-status {
  font-size: 0.8em;
  color: var(--text-muted);
}

.coleader-status.online {
  color: var(--success-color);
}

.coleader-status.offline {
  color: var(--text-muted);
}

/* Simple Player Card for Reports */
.simple-player-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simple-player-info {
  flex: 1;
}

.simple-player-name {
  font-weight: 600;
  font-size: 0.9em;
}

.simple-player-tag {
  font-size: 0.8em;
  color: var(--text-muted);
}

.simple-remove-btn {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9em;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .dashboard-content {
    padding: 10px;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .quick-action-btn {
    min-width: 100%;
  }
  
  .section-header {
    padding: 12px;
  }
  
  .collapsible-section {
    margin: 10px 0;
  }
  
  .top-performer-stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .top-performer-card {
    padding: 12px;
    margin: 10px 0;
  }
}

/* Compact Job Cards */
.compact-job-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 4px solid var(--primary-color);
}

.compact-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.compact-job-title {
  font-size: 0.95em;
  font-weight: 600;
}

.compact-job-type {
  font-size: 0.7em;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(52, 152, 219, 0.2);
  color: var(--primary-color);
}

.compact-job-details {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.compact-job-actions {
  display: flex;
  gap: 8px;
}

.compact-action-btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.8em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-online {
  background: rgba(46, 204, 113, 0.2);
  color: var(--success-color);
}

.status-offline {
  background: rgba(149, 165, 166, 0.2);
  color: var(--text-muted);
}

/* Loading Animation for Empty States */
.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2em;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Improved Private Message Badges */
.unread-badge.small {
  width: 18px;
  height: 18px;
  font-size: 0.6em;
  margin-left: 5px;
}

/* Co-leader item with unread indicator */
.coleader-item-unread {
  border-left: 4px solid var(--danger-color);
  background: rgba(231, 76, 60, 0.05);
}

/* Back button in modals */
.back-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Co-leader item in selection */
.coleader-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid transparent;
}

.coleader-item:hover {
  background: rgba(52, 152, 219, 0.1);
}

.coleader-item.selected {
  background: rgba(52, 152, 219, 0.2);
  border-left-color: var(--primary-color);
}

.coleader-item-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  margin-right: 10px;
}

.coleader-item-info {
  flex: 1;
}

.coleader-item-name {
  font-weight: 600;
  font-size: 0.95em;
  margin-bottom: 3px;
}

.coleader-item-status {
  font-size: 0.8em;
  color: var(--text-muted);
}

.coleader-item-status.online {
  color: var(--success-color);
}

/* Quick action button improvements */
.quick-action-btn {
  position: relative;
}

/* Chat read status */
.message-read-status {
  font-size: 0.7em;
  color: var(--text-muted);
  margin-top: 2px;
}

.message-read-status.read {
  color: var(--success-color);
}

