* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Screen reader only - accessible but visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible for better keyboard navigation */
*:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 2px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.main-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 30px;
}

.upload-section {
  text-align: center;
  margin-bottom: 30px;
}

.upload-area {
  border: 3px dashed #667eea;
  border-radius: 16px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8edff 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: #764ba2;
  background: linear-gradient(135deg, #f0f5ff 0%, #e0e7ff 100%);
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: #4ade80;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
  transform: scale(1.1);
  color: #764ba2;
}

.upload-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
}

.upload-subtext {
  color: #64748b;
  font-size: 0.95rem;
}

#imageInput {
  display: none;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.control-group {
  background: #f8faff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.control-group.full-width {
  grid-column: 1 / -1;
}

.control-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

select, input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

select:focus, input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Path and Filename Group Styles */
.path-filename-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.path-selector, .filename-input {
  display: flex;
  flex-direction: column;
}

.path-selector label, .filename-input label {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 500;
}

.path-selector::before {
  content: "Path:";
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 500;
}

.filename-input::before {
  content: "Filename:";
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 500;
}

.format-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.format-btn {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.format-btn:hover {
  border-color: #667eea;
  background: #f8faff;
}

.format-btn.active {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 15px;
  background: #ffffff;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.checkbox-group:hover {
  border-color: #667eea;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.generate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  display: block;
  width: 100%;
  margin: 20px 0;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.preview-section {
  margin-top: 30px;
}

.live-preview-section {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.live-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.live-preview-item {
  background: white;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.live-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #667eea;
}

.live-preview-item img {
  max-width: 32px;
  max-height: 32px;
  margin-bottom: 8px;
  border-radius: 2px;
}

.live-preview-item .size-label {
  font-weight: 600;
  color: #667eea;
  font-size: 0.75rem;
  margin-bottom: 3px;
}

.live-preview-item .format-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.live-preview-item .variant-label {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 2px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.preview-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.preview-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #667eea;
}

.preview-item img {
  max-width: 64px;
  max-height: 64px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.preview-item .size-label {
  font-weight: 700;
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.preview-item .format-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-item .variant-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 3px;
}

.download-section {
  text-align: center;
  margin-top: 30px;
}

.download-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* HTML Code Generation Styles */
.html-code-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e2e8f0;
}

.code-container {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.code-header {
  background: #334155;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #475569;
}

.code-title {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
}

.copy-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #10b981;
}

#htmlCodeOutput {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  background: #1e293b;
  color: #e2e8f0;
  border: none;
  padding: 20px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  overflow-y: auto;
}

#htmlCodeOutput::placeholder {
  color: #64748b;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0;
  display: none;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.3s ease;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff40;
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-left: 4px solid #10b981;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left-color: #ef4444;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
  
  .main-panel {
    padding: 20px;
  }
  
  .controls {
    grid-template-columns: 1fr;
  }
  
  .path-filename-group {
    grid-template-columns: 1fr;
  }
  
  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .live-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .code-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .copy-btn {
    justify-content: center;
  }
}

/* Hero Badge Section Styles */
.hero-badge-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.badge-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.badge-section-title i {
  color: #667eea;
  font-size: 2rem;
}

.badge-section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 40px;
  font-weight: 500;
}

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

.badge-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.badge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.badge-image {
  max-width: 100%;
  max-height: 80px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.badge-html-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  min-height: 40px;
}

.badge-html-content img {
  max-height: 80px;
  max-width: 100%;
}

.badge-html-content svg {
  max-height: 80px;
  max-width: 100%;
}

.badge-item:hover .badge-image,
.badge-item:hover .badge-html-content {
  transform: scale(1.05);
}

.badge-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.badge-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

.badge-loading {
  text-align: center;
  color: #667eea;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 40px;
}

.badge-loading i {
  margin-right: 10px;
}

/* Site Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #e5e7eb;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 15px;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-social a:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 5px 0;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  .hero-badge-section {
    margin-top: 40px;
  }
  
  .badge-section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .badge-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-container {
    padding: 40px 15px 15px;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Admin Panel Styles */
.admin-toggle {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  color: #667eea;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.admin-toggle:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
}

.admin-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.admin-header h3 {
  color: #374151;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #6b7280;
}

.sign-out-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sign-out-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.badge-form h4,
.badge-management h4 {
  color: #374151;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #374151;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  height: 80px;
  resize: vertical;
  font-family: 'Courier New', monospace;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.btn-preview,
.btn-add {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-preview {
  background: #6b7280;
  color: white;
}

.btn-preview:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.btn-add {
  background: #10b981;
  color: white;
}

.btn-add:hover {
  background: #059669;
  transform: translateY(-1px);
}

.badge-list {
  max-height: 400px;
  overflow-y: auto;
}

.managed-badge-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.managed-badge-info h5 {
  margin: 0 0 5px 0;
  color: #374151;
}

.managed-badge-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.badge-actions {
  display: flex;
  gap: 8px;
}

.btn-edit,
.btn-delete {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-edit {
  background: #3b82f6;
  color: white;
}

.btn-edit:hover {
  background: #2563eb;
}

.btn-delete {
  background: #ef4444;
  color: white;
}

.btn-delete:hover {
  background: #dc2626;
}

.sign-in-section {
  text-align: center;
  margin: 30px 0;
}

.sign-in-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.sign-in-card h3 {
  color: #374151;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sign-in-card p {
  color: #6b7280;
  margin-bottom: 25px;
}

.badge-preview {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-preview-content {
  text-align: center;
}

.badge-preview img {
  max-height: 40px;
  max-width: 200px;
}

.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 0.9rem;
}

.success-message {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 0.9rem;
}

/* Responsive Design for Admin Panel */
@media (max-width: 768px) {
  .badge-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .admin-toggle {
    align-self: flex-end;
  }
  
  .admin-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .admin-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* Admin Tabs Styles */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 6px;
}

.admin-tab {
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.admin-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.admin-tab.active {
  background: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.tab-description {
  color: #6b7280;
  margin-bottom: 25px;
  font-style: italic;
}

/* Documentation Tab Styles */
.docs-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.docs-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.docs-section h5 {
  color: #374151;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.docs-list {
  list-style: none;
  padding-left: 0;
}

.docs-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  color: #4b5563;
}

.docs-list li:last-child {
  border-bottom: none;
}

.code-block {
  background: #1f2937;
  color: #e5e7eb;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  margin: 15px 0;
}

.badge-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.badge-type-card {
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.badge-type-card strong {
  color: #667eea;
  display: block;
  margin-bottom: 8px;
}

.badge-type-card p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

/* Settings Tab Styles */
.settings-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border-left: 4px solid #10b981;
}

.settings-section h5 {
  color: #374151;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item label {
  font-weight: 500;
  color: #374151;
}

.setting-value {
  color: #6b7280;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
}

.setting-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Mobile responsiveness for admin tabs */
@media (max-width: 768px) {
  .admin-tabs {
    flex-direction: column;
    gap: 2px;
  }
  
  .admin-tab {
    justify-content: flex-start;
  }
  
  .badge-types-grid {
    grid-template-columns: 1fr;
  }
  
  .setting-actions {
    flex-direction: column;
  }
  
  .docs-content {
    max-height: 50vh;
  }
}