/* Admin route styles */

.books-warning-panel {
  border-color: rgba(255, 176, 85, 0.65);
  background: linear-gradient(135deg, rgba(255, 176, 85, 0.14), rgba(255, 128, 96, 0.08));
}

/* Repository Overview */
.repo-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 180, 248, 0.3);
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.info-value {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'IBM Plex Mono', monospace;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
}

.section-header .actions-row {
  margin: 0;
}

/* Filter Row */
.filter-row {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row .input {
  flex: 1;
  min-width: 200px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  user-select: none;
}

.filter-toggle input[type="checkbox"] {
  cursor: pointer;
}

/* Feature Category Section */
.feature-category-section {
  margin: 2rem 0;
}

.category-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(138, 180, 248, 0.3);
  color: rgba(138, 180, 248, 0.95);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Feature Card */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 180, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card.enabled {
  border-color: rgba(108, 214, 174, 0.4);
  background: linear-gradient(135deg, rgba(108, 214, 174, 0.08), rgba(138, 180, 248, 0.04));
}

.feature-card.enabled:hover {
  border-color: rgba(108, 214, 174, 0.6);
}

/* Feature Header */
.feature-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-toggle-wrapper {
  flex-shrink: 0;
}

.feature-info {
  flex: 1;
}

.feature-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.feature-status {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* Feature Details */
.feature-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.meta-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  min-width: 70px;
  flex-shrink: 0;
}

.feature-category.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(138, 180, 248, 0.2);
  color: rgba(138, 180, 248, 1);
}

.feature-modules {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
}

.feature-path,
.feature-import {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  word-break: break-all;
  line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: rgba(108, 214, 174, 0.4);
  border-color: rgba(108, 214, 174, 0.6);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: rgb(108, 214, 174);
}

.toggle-slider:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

input:checked + .toggle-slider:hover {
  background-color: rgba(108, 214, 174, 0.5);
}

/* Role Labels */
.role-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.role-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 180, 248, 0.3);
}

.role-label input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .repo-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row .input {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .repo-info-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-header {
    flex-direction: column;
  }

  .toggle-switch {
    align-self: flex-start;
  }
}

