/* Admin Panel Styles */
.admin-panel {
  max-width: 1200px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-panel h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2d3748;
  font-weight: 600;
}

/* Tabs Navigation */
.admin-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.admin-tabs button {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px 6px 0 0;
  background: #edf2f7;
  color: #4a5568;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.admin-tabs button:hover {
  background: #e2e8f0;
}

.admin-tabs button.active {
  background: #4c51bf;
  color: #ffffff;
}

/* Statistics Section */
.admin-stats {
  display: flex;
  justify-content: space-around;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: #4a5568;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-stats div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-stats div::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c51bf;
}

/* Tables */
.admin-table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table-container h2 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  min-width: 800px;
}

.admin-table th, 
.admin-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
}

.admin-table th {
  background: #f7fafc;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.admin-table tr:hover td {
  background-color: #f8fafc;
}

/* Buttons */
.delete-btn {
  background: #e53e3e;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.delete-btn:hover {
  background: #c53030;
}

/* Utility Classes */
.email {
  color: #718096;
  font-size: 0.9em;
  display: block;
  margin-top: 0.25rem;
}

.error {
  color: #e53e3e;
  text-align: center;
  margin: 1rem 0;
  padding: 1rem;
  background: #fff5f5;
  border-radius: 5px;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #4a5568;
}

/* Responsive */
@media (max-width: 800px) {
  .admin-panel {
    padding: 1.25rem;
    margin: 1rem;
  }
  
  .admin-stats {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .admin-table th, 
  .admin-table td {
    padding: 0.75rem;
  }
  
  .admin-tabs {
    flex-wrap: wrap;
  }
}

/* Automatically injected: Ensure section headers are visible below the fixed header when using anchor links */
.document-section, .policy-section, .section-header {
  scroll-margin-top: 100px;
}

/* Prevent purple visited links in Table of Contents and section links */
a,
a:visited,
a:active {
  color: #2563eb;
}

.toc-link .toc-icon,
.toc-link:visited .toc-icon,
.toc-link:active .toc-icon {
  color: #9ca3af;
}

/* Privacy Page Modern Styles */
.privacy-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 4rem 2rem 5rem 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 32px rgba(59,130,246,0.08);
}
.privacy-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}
.privacy-header .header-description {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
}
.privacy-header .shield-graphic {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.18);
  margin-left: 2rem;
}
.privacy-header .shield-icon {
  font-size: 3.5rem;
  color: #fff;
  opacity: 0.9;
}
.privacy-main {
  max-width: 1100px;
  margin: -3rem auto 3rem auto;
  padding: 0 1.5rem 3rem 1.5rem;
  position: relative;
}
.privacy-nav {
  background: #eff6ff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(59,130,246,0.06);
  padding: 1.2rem 2rem;
  margin-bottom: 2.5rem;
}
.privacy-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.privacy-nav a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}
.privacy-nav a:hover {
  background: #dbeafe;
  color: #1e3a8a;
}
.policy-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.policy-intro, .policy-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(59,130,246,0.07);
  padding: 2.5rem 2rem;
}
.policy-intro h2 {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 0.7rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: 1.5rem;
  color: #2563eb;
  margin: 0;
}
.section-icon {
  font-size: 1.5rem;
  color: #3b82f6;
}
.section-content {
  color: #334155;
}
.info-category h3, .usage-card h3, .partner-card h4, .right-card h3 {
  color: #2563eb;
}
.usage-card, .partner-card, .right-card {
  background: #eff6ff;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .privacy-header { padding: 3rem 1rem 4rem 1rem; }
  .privacy-main { padding: 0 0.5rem 2rem 0.5rem; }
  .policy-intro, .policy-section { padding: 1.5rem 1rem; }
}
@media (max-width: 600px) {
  .privacy-header h1 { font-size: 2rem; }
  .policy-intro h2 { font-size: 1.2rem; }
  .section-header h2 { font-size: 1.1rem; }
}