.sifency-context-menu {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  display: none;
  min-width: 200px;
}

.sifency-context-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  text-align: left;
  transition: background-color 0.2s;
}

.sifency-context-btn:hover {
  background-color: #f5f5f5;
}

.sifency-duplicate-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.sifency-duplicate-control:hover {
  background: #e0e0e0;
  border-color: #999;
}

.sifency-duplicate-control i {
  font-size: 14px;
  color: #333;
}

/* Favorites Toggle Button */
.sifency-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.2s;
}

.sifency-favorite-btn:hover {
  background: #fffacd;
  border-color: #ffd700;
  color: #f39c12;
}

.sifency-favorite-btn.is-favorite {
  background: #fffacd;
  border-color: #ffd700;
  color: #f39c12;
}

.sifency-favorite-btn::before {
  content: "★";
  font-size: 14px;
}

.sifency-favorite-btn.is-favorite::before {
  color: #ffd700;
}

/* Notifications */
.sifency-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sifency-notification-success {
  border-left: 4px solid #27ae60;
  color: #27ae60;
}

.sifency-notification-success::before {
  content: "✓ ";
  font-weight: bold;
}

.sifency-notification-error {
  border-left: 4px solid #e74c3c;
  color: #e74c3c;
}

.sifency-notification-error::before {
  content: "✕ ";
  font-weight: bold;
}

.sifency-notification-info {
  border-left: 4px solid var(--sifency-accent);
  color: var(--sifency-accent);
}

.sifency-notification-info::before {
  content: "ℹ ";
  font-weight: bold;
}

/* Documentation Page Styles */
.sifency-documentation-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  color: #333;
}

.documentation-container {
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid var(--sifency-border-color);
  border-radius: 6px;
}

.sifency-doc-header {
  color: white;
  padding: 50px 30px;
  text-align: center;
  border-radius: 8px 8px 0 0;
}

.sifency-doc-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 100%;
}

.sifency-doc-header .subtitle {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
  line-height: 130%;
}

.doc-tabs-nav {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
  flex-wrap: wrap;
}

.doc-tab-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
  min-width: 120px;
  position: relative;
}

.doc-tab-btn:hover {
  background: #f3f4f6;
  color: var(--sifency-accent);
}

.doc-tab-btn.active {
  color: var(--sifency-accent);
  background: white;
}

.doc-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sifency-accent);
}

.doc-tabs-content {
  padding: 40px;
  background: white;
  border-radius: 0 0 8px 8px;
}

.doc-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.doc-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.doc-tab-pane h2 {
  color: #111827;
  margin: 0 0 30px;
  font-size: 26px;
  font-weight: 600;
}

.doc-section {
  margin-bottom: 40px;
}

.doc-section h3 {
  color: #374151;
  font-size: 18px;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
}

.doc-section h4 {
  color: #374151;
  margin: 15px 0 8px;
  font-weight: 600;
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 20px 20px;
  line-height: 1.8;
}

.doc-section li {
  margin-bottom: 10px;
  color: #4b5563;
}

.doc-section p {
  line-height: 1.6;
  color: #4b5563;
}

.doc-features-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.doc-features-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.doc-features-table tr:hover {
  background: #f9fafb;
}

.doc-features-table td {
  padding: 12px 15px;
  color: #4b5563;
}

.doc-features-table strong {
  color: #111827;
  font-weight: 600;
}

.widget-category {
  background: #f9fafb;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  border-left: 4px solid var(--sifency-accent);
  transition: all 0.3s ease;
}

.widget-category:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.widget-category h4 {
  margin-top: 0;
  color: var(--sifency-accent);
  font-size: 16px;
}

.widget-category p {
  margin: 5px 0 10px;
  color: #6b7280;
  font-size: 14px;
}

.widget-category ul {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
}

.widget-category li {
  margin-bottom: 6px;
}

.faq-item {
  background: #f9fafb;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  border-left: 4px solid var(--sifency-accent);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.faq-item h4 {
  margin-top: 0;
  color: var(--sifency-accent);
  font-size: 16px;
}

.faq-item p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Analytics Dashboard */
.sifency-analytics-dashboard {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 1000px;
  margin: auto;
  border: 1px solid var(--sifency-border-color);
  border-radius: 6px;
}

.sifency-analytics-dashboard h2 {
  margin-top: 0;
  color: #111827;
  font-size: 26px;
}

.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--sifency-accent);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.analytics-section {
  margin-bottom: 40px;
}

.analytics-section h3 {
  color: #374151;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
}

.analytics-table thead {
  background: #f3f4f6;
}

.analytics-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  font-size: 13px;
}

.analytics-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 13px;
}

.analytics-table tbody tr:hover {
  background: #f9fafb;
}

.analytics-actions {
  text-align: right;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.analytics-actions .button {
  background: var(--sifency-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.analytics-actions .button:hover {
  background: var(--sifency-accent-hover);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .doc-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .doc-tab-btn {
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 100px;
    padding: 12px 15px;
  }

  .doc-tabs-content {
    padding: 20px;
  }

  .sifency-doc-header {
    padding: 30px 20px;
  }

  .sifency-doc-header h1 {
    font-size: 22px;
    line-height: 100%;
  }

  .analytics-stats-grid {
    grid-template-columns: 1fr;
  }

  .analytics-table {
    font-size: 12px;
  }

  .analytics-table th,
  .analytics-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .sifency-doc-header h1 {
    font-size: 18px;
  }

  .sifency-doc-header .subtitle {
    font-size: 14px;
  }

  .doc-tab-btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .stat-value {
    font-size: 24px;
  }
}
