.myquizgpt-admin .myquizgpt-admin-container {
  max-width: 900px;
  margin-top: 20px;
}

.myquizgpt-admin h1 {
  font-weight: 700;
  color: #1d2327;
}

.myquizgpt-admin-header h2 {
  margin-bottom: 4px;
}

.myquizgpt-admin-header p {
  color: #555d66;
  margin-top: 0;
}

.myquizgpt-form-wrapper {
  margin-top: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #dcdcde;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.myquizgpt-form-wrapper textarea {
  width: 100%;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #8c8f94;
  margin-bottom: 16px;
}

/* Premium Primary Button */
.myquizgpt-form-wrapper .submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(34, 113, 177, 0.25), 0 2px 4px -1px rgba(34, 113, 177, 0.1);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.myquizgpt-form-wrapper .submit-btn:hover {
  background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(34, 113, 177, 0.3), 0 4px 6px -2px rgba(34, 113, 177, 0.1);
}

.myquizgpt-form-wrapper .submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

/* ChatGPT Helper Banner */
.chatgpt-helper-banner {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #c3d4ef;
  background: linear-gradient(135deg, #f0f6ff 0%, #e5efff 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chatgpt-banner-icon {
  background: #fff;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
}

.chatgpt-banner-content {
  flex: 1;
}

.chatgpt-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2271b1;
  margin-bottom: 4px;
}

.chatgpt-banner-body {
  font-size: 13px;
  color: #1d2327;
  line-height: 1.4;
  font-weight: 500;
}

.chatgpt-helper-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #2271b1;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}

.chatgpt-helper-btn:hover {
  background: #135e96;
  transform: translateX(2px);
}

.chatgpt-helper-btn span:first-child {
  font-size: 18px;
  line-height: 1;
}

/* Success & Message boxes */
.myquizgpt-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  display: none;
}

.myquizgpt-message-success { background: #edfaef; border: 1px solid #00a32a; color: #135e1a; }
.myquizgpt-message-error { background: #fcf0f1; border: 1px solid #d63638; color: #8a1f11; }

.myquizgpt-success {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #f0f6ff;
  border: 1px solid #c3d4ef;
}

.quiz-link-container {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.quiz-link-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
}

/* Examples Section - Sharper Look */
.examples-section {
  margin-top: 32px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.examples-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dcdcde;
}

.examples-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
}

/* Sharp Tabs */
.example-tabs {
  display: flex;
  background: #eee;
  padding: 3px;
  border-radius: 6px;
}

.example-tab {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #646970;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.example-tab.active {
  background: #fff;
  color: #2271b1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.example-content {
  display: none;
  padding: 20px;
}

.example-content.active {
  display: block;
}

.example-code-wrapper {
  position: relative;
  background: #1e1e1e;
  border-radius: 6px;
  margin-bottom: 16px;
}

.example-code {
  margin: 0;
  padding: 20px;
  color: #d4d4d4;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
}

/* Sharp Copy JSON Button */
.copy-example-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-example-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.copy-example-btn.is-copied {
  background: #10b981;
  border-color: #10b981;
}

/* Sharp ChatGPT Link Button */
.chatgpt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #10a37f; /* ChatGPT Green */
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chatgpt-link-btn:hover {
  background: #0e8c6d;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chatgpt-link-btn span {
  transition: transform 0.2s;
}

.chatgpt-link-btn:hover span {
  transform: translateX(4px);
}

/* Settings Page Styles */
/* Toggle Switch Styles */
.myquizgpt-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-right: 12px;
  vertical-align: middle;
}

.myquizgpt-toggle-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  margin: 0;
  top: 0;
  left: 0;
}

.myquizgpt-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 26px;
  pointer-events: none;
}

.myquizgpt-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.myquizgpt-toggle-switch input:checked + .myquizgpt-toggle-slider {
  background-color: #2271b1;
}

.myquizgpt-toggle-switch input:checked + .myquizgpt-toggle-slider:before {
  transform: translateX(24px);
}

.myquizgpt-toggle-switch input:focus + .myquizgpt-toggle-slider {
  box-shadow: 0 0 1px #2271b1;
}

.myquizgpt-toggle-switch:hover .myquizgpt-toggle-slider {
  box-shadow: 0 0 4px rgba(34, 113, 177, 0.3);
}

.myquizgpt-toggle-switch {
  cursor: pointer;
}

/* Classroom Plan Feature List Styles */
.myquizgpt-classroom-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.myquizgpt-classroom-features li {
  position: relative;
  padding: 12px 0 12px 40px;
  color: #1d2327;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f1;
  transition: background-color 0.2s ease;
}

.myquizgpt-classroom-features li:last-child {
  border-bottom: none;
}

.myquizgpt-classroom-features li:hover {
  background-color: #f8f9fa;
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 50px;
  padding-right: 10px;
  border-radius: 4px;
}

.myquizgpt-classroom-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.myquizgpt-classroom-features li strong {
  color: #1d2327;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.myquizgpt-classroom-features li span {
  color: #646970;
  font-size: 14px;
  display: block;
}

/* Settings Page Specific Styles */
.myquizgpt-admin h1 {
  margin-bottom: 20px;
}

.myquizgpt-settings-banner {
  margin-bottom: 25px;
}

.myquizgpt-settings-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.myquizgpt-settings-form-group {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #2271b1;
}

.myquizgpt-toggle-wrapper {
  display: flex;
  align-items: flex-start;
  font-weight: 600;
  color: #1d2327;
  margin-bottom: 10px;
}

.myquizgpt-toggle-label {
  margin-top: 2px;
}

.myquizgpt-toggle-description {
  margin-left: 62px;
  margin-top: 8px;
  color: #646970;
  font-style: italic;
  line-height: 1.6;
}

.myquizgpt-classroom-wrapper {
  margin-top: 30px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.myquizgpt-classroom-header h2 {
  margin-bottom: 12px;
  color: #1d2327;
  font-size: 22px;
  font-weight: 600;
}

.myquizgpt-classroom-header p {
  color: #646970;
  margin-bottom: 0;
  line-height: 1.7;
  font-size: 15px;
}

.myquizgpt-classroom-button {
  margin-top: 10px;
}

.myquizgpt-classroom-button .button {
  text-decoration: none;
  font-size: 15px;
  padding: 10px 24px;
  height: auto;
  box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
  transition: all 0.2s ease;
}

/* Additional Admin Page Styles */
.myquizgpt-admin h1 {
  margin-bottom: 20px;
}

.myquizgpt-admin-header {
  margin-bottom: 20px;
}

.myquizgpt-form-wrapper {
  margin-top: 20px;
}

.myquizgpt-form-wrapper.myquizgpt-troubleshooting {
  margin-top: 30px;
}

.myquizgpt-message {
  margin-top: 15px;
}

/* Admin Page Specific */
.myquizgpt-success {
  display: none;
}

.myquizgpt-shortcode-container {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.myquizgpt-shortcode-code {
  flex: 1;
  padding: 8px;
  background: #f0f0f1;
  border-radius: 4px;
}

/* Quizzes List Styles */
.myquizgpt-quizzes-list th {
  width: 50px;
}

.myquizgpt-quiz-link {
  text-decoration: none;
}

.myquizgpt-quiz-link .dashicons {
  font-size: 14px;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.5;
}

.myquizgpt-delete-quiz {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #d63638;
}

.myquizgpt-delete-quiz-cell {
  text-align: right;
}

/* Quiz Viewer Styles */
.myquizgpt-quiz-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.myquizgpt-initializing {
  text-align: center;
  padding: 50px;
  color: #9ca3af;
}

.myquizgpt-share-order {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 10px;
}

.myquizgpt-share-position span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1d2327;
}

.myquizgpt-share-position select {
  width: 100%;
}

.myquizgpt-share-message-label {
  display: block;
  margin-top: 22px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1d2327;
}

.myquizgpt-form-wrapper textarea.myquizgpt-share-message {
  margin-bottom: 6px;
  font-family: inherit;
}

@media (max-width: 782px) {
  .myquizgpt-share-order {
    grid-template-columns: 1fr;
  }
}
