/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #404040;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  font-family: inherit;
}

.admin-tab:hover {
  color: #e0e0e0;
}

.admin-tab.active {
  color: #4CAF50;
  font-weight: 600;
}

.admin-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #4CAF50;
}

/* Admin Page Header */
.admin-content {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: #e0e0e0;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-page-title {
  color: #ffffff;
  font-size: 2rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Admin Buttons */
.admin-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.admin-btn-primary {
  background-color: #4CAF50;
  color: white;
}

.admin-btn-primary:hover {
  background-color: #45a049;
}

.admin-btn-primary:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-btn-secondary {
  background-color: #555;
  color: white;
}

.admin-btn-secondary:hover:not(:disabled) {
  background-color: #666;
}

.admin-btn-secondary:disabled {
  background-color: #444;
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.admin-btn-success {
  background-color: #2196F3;
  color: white;
}

.admin-btn-success:hover {
  background-color: #0b7dda;
}

.admin-btn-info {
  background-color: #2196F3;
  color: white;
}

.admin-btn-info:hover {
  background-color: #0b7dda;
}

.admin-btn-danger {
  background-color: #f44336;
  color: white;
}

.admin-btn-danger:hover:not(:disabled) {
  background-color: #da190b;
}

.admin-btn-danger:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-btn-icon {
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  min-width: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.admin-modal-content {
  background-color: #2d2d2d;
  border-radius: 8px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.admin-large-modal {
  max-width: 600px;
}

.admin-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #404040;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-btn-close {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  font-family: inherit;
}

.admin-btn-close:hover {
  color: #ffffff;
}

.admin-modal-body {
  padding: 1.5rem;
}

.admin-modal-actions {
  padding: 1.5rem;
  border-top: 1px solid #404040;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Form */
.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-group label {
  display: block;
  color: #b0b0b0;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-form-input {
  width: 100%;
  padding: 0.75rem;
  background-color: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.admin-form-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.admin-form-input::placeholder {
  color: #666;
}

select.admin-form-input {
  cursor: pointer;
}

textarea.admin-form-input {
  resize: vertical;
  min-height: 80px;
}

/* Pagination */
.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #404040;
  background-image: none !important;
}

.admin-pagination-info {
  color: #b0b0b0;
  font-size: 0.875rem;
  min-width: 120px;
  text-align: center;
}