:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --bg: #f8f9fa;
  --card-radius: 0.75rem;
}
body {
  background: var(--bg);
  font-family: 'Segoe UI', Arial, sans-serif;
}
.card {
  border-radius: var(--card-radius);
}
.card-title {
  font-weight: 600;
}
.card .display-6 {
  font-size: 2.2rem;
  font-weight: 700;
}
.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
@media (max-width: 991px) {
  .navbar .navbar-collapse {
    background: var(--primary);
    border-radius: 0 0 1rem 1rem;
    margin-top: 0.5rem;
  }
}
@media (max-width: 767px) {
  .card .display-6 {
    font-size: 1.5rem;
  }
  .card-title {
    font-size: 1.1rem;
  }
}
/* User Management Table */
#userSection {
  transition: all 0.3s;
}
#userTable th, #userTable td {
  vertical-align: middle;
}
#userTable tbody tr:hover {
  background: #f1f3f5;
  cursor: pointer;
}
/* Modal styles */
#modalUserInfo {
  font-size: 0.97rem;
}
#modalUserInfo strong {
  display: inline-block;
  width: 90px;
}
#modalConversation {
  background: #f8f9fa;
  font-size: 0.98rem;
}
@media (max-width: 767px) {
  #modalConversation {
    height: 200px !important;
  }
} 
/* Messaging & Broadcast Section */
#messagesSection label {
  font-weight: 500;
}
#messagesSection .form-control, #messagesSection .form-select {
  min-width: 120px;
}
#messagesSection .table {
  font-size: 0.97rem;
}
#broadcastTable td, #broadcastTable th {
  vertical-align: middle;
}
#broadcastTable tbody tr:hover {
  background: #f1f3f5;
}
@media (max-width: 767px) {
  #messagesSection .row.g-2 > div {
    margin-bottom: 1rem;
  }
} 
/* Analytics widgets */
#botUptime {
  font-weight: 500;
  color: var(--secondary);
}
.card .small {
  font-size: 0.95rem;
}
.row.g-3.mt-2 > .col-6 {
  margin-bottom: 1rem;
} 
/* Settings Management Section */
#settingsSection label {
  font-weight: 500;
}
#settingsSection .form-control {
  min-width: 120px;
}
#settingsSection .card-title {
  margin-bottom: 1.5rem;
}
#settingsSection h5 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
@media (max-width: 767px) {
  #settingsSection .row.g-3 > div {
    margin-bottom: 1rem;
  }
} 
/* Backup & Export Section */
#backupExportSection h5 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
#backupExportSection .btn {
  margin-bottom: 0.5rem;
}
#exportDownloadLink a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
} 
/* Live Conversation Feed */
#liveConversationFeed h5 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
#liveFeedList .list-group-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.98rem;
}
.live-feed-meta {
  font-size: 0.92rem;
  color: var(--secondary);
}
.live-feed-reply {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.live-feed-reply input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 767px) {
  #liveFeedList {
    max-height: 150px !important;
  }
} 
/* Role Management Section */
#roleManagementSection h5 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
#roleManagementSection .table {
  font-size: 0.97rem;
}
#roleManagementSection .btn-success {
  min-width: 70px;
}
@media (max-width: 767px) {
  #roleManagementSection .row.g-2 > div {
    margin-bottom: 1rem;
  }
} 
/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1050;
  background: #fff;
  color: #0d6efd;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.visually-hidden-focusable:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
/* Ensure color contrast for dark mode */
body.dark-mode .skip-link {
  background: #23272b;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
} 
/* Toast Notifications */
.toast-container {
  z-index: 2000;
}
.toast {
  min-width: 220px;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body.dark-mode .toast {
  background: #23272b;
  color: #e9ecef;
  border-color: #444;
}
/* Spinner Overlay */
#globalSpinner {
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode #globalSpinner {
  background: rgba(24,26,27,0.7);
} 