/* Format Toggle Group */
.system-settings-format-toggle-group {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  font-size: 12px;
  gap: 8px;
}

.system-settings-format-buttons {
  display: flex;
  align-items: center;
}

.system-settings-format-btn {
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.2;
}

/* Remove double borders between buttons */
.system-settings-format-btn + .system-settings-format-btn {
  border-left: none;
}

.system-settings-format-btn:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.system-settings-format-btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-right: 1px solid #ccc;
}

.system-settings-format-btn:hover {
  background-color: #e0e0e0;
}

.system-settings-format-btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  position: relative;
  z-index: 1; /* Bring active button to front */
}

.system-settings-format-btn.active + .system-settings-format-btn {
  border-left: 1px solid #ccc; /* Restore left border for next button when active */
}

/* Test Summary Button */
.system-settings-success-btn {
  padding: 6px 12px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
  transition: background-color 0.2s ease;
  line-height: 1.2;
}

.system-settings-success-btn:hover {
  background-color: #218838;
}

.system-settings-success-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Main container */
.system-settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Card styles */
.system-settings-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Modal styles */
.system-settings-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.system-settings-modal-content {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.system-settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.system-settings-modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Text styles */
.system-settings-label {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.system-settings-description {
  font-size: 12px;
  color: #666;
}

/* Status styles */
.system-settings-status-on {
  font-weight: bold;
  color: green;
  margin-right: 12px;
}

.system-settings-status-off {
  font-weight: bold;
  color: red;
  margin-right: 12px;
}

/* Button styles */
.system-settings-primary-btn {
  padding: 10px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
}

.system-settings-danger-btn {
  padding: 4px 8px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.system-settings-success-btn {
  padding: 6px 12px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 8px;
}

/* Toggle switch */
.system-settings-switch {
  width: 40px;
  height: 20px;
  position: relative;
  background-color: #ccc;
  border-radius: 20px;
  cursor: pointer;
}

.system-settings-switch-knob {
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Input styles */
.system-settings-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 8px;
  width: 250px;
}

/* Email list styles */
.system-settings-email-list {
  margin-top: 16px;
  padding: 8px;
  border-radius: 4px;
  background-color: #f0f0f0;
  max-height: 200px;
  overflow-y: auto;
}

.system-settings-email-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin: 4px 0;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Section styles */
.system-settings-section {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
}

/* Engagement summary styles */
.system-settings-summary-stage {
  margin-bottom: 16px;
}

.system-settings-summary-stage-header {
  font-size: 14px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
}

.system-settings-summary-stage-content {
  max-height: 250px;
  overflow-y: auto;
  background-color: #f9f9f9;
  padding: 8px;
  border-radius: 4px;
  margin: 4px 0;
}

.system-settings-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.system-settings-summary-table th,
.system-settings-summary-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.system-settings-summary-table th:last-child,
.system-settings-summary-table td:last-child {
  text-align: right;
}

/* css modal */
.system-settings-summary-section {
  margin-top: 16px;
}

.system-settings-summary-counts {
  display: flex;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.system-settings-summary-counts > div {
  text-align: center;
  min-width: 60px;
}

.system-settings-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.system-settings-no-users {
  font-size: 14px;
  color: #666;
  padding: 8px;
  text-align: center;
}

/* Add these to your SystemSettingsStyle.css */
.metric-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.metric-percentage {
  font-size: 1rem;
  color: #666;
}

.metric-label {
  font-weight: 600;
  margin: 4px 0;
  color: #444;
}

.metric-description {
  font-size: 0.85rem;
  color: #666;
}

.system-settings-summary-table th:nth-child(5),
.system-settings-summary-table td:nth-child(5) {
  white-space: nowrap;
}


/* Add to your SystemSettingsStyle.css */
.notification-dropdown {
  position: relative;
  display: inline-block;
}

.notification-bell {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
}

.notification-list {
  position: absolute;
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1000;
  display: none;
}

.notification-dropdown:hover .notification-list {
  display: block;
}

.notification-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  position: relative;
}

.notification-item.read {
  opacity: 0.7;
}

.notification-item:hover {
  background: #f5f5f5;
}

.notification-message {
  font-weight: 500;
}

.notification-time {
  font-size: 0.8rem;
  color: #666;
}

.notification-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
}