/* Add to your base.css or create admin.css */
.admin-console {
  max-width: 100%;
}

/* Admin Console Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-bottom: 3px solid #2c3e50;
}

.admin-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-btn {
  margin-left: auto;
}

/* Admin Actions */
.admin-actions {
  margin-bottom: 2rem;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.posts-management h3 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f9fa;
}

.post-info {
  flex: 1;
}

.post-info h4 {
  margin: 0 0 0.5rem 0;
}

.post-info h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.post-excerpt {
  color: #888;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

.btn-danger:hover {
  background: #c82333;
}

.btn-icon-only {
  padding: 0.75rem 1.2rem; /* Same padding as logout button */
  border-radius: 6px; /* Match standard button border radius */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto; /* Remove fixed min-width */
  min-height: auto; /* Remove fixed min-height */
  transition: all 0.2s ease;
  font-weight: 500; /* Match logout button font weight */
}

.btn-label {
  margin-left: 0.75rem;
  font-weight: 500;
  color: #495057;
}

.btn-icon-only svg {
  width: 16px; /* Reduce icon size */
  height: 16px;
}

/* Logout button styling */
.logout-btn {
  background: #1565c0;
  border-color: #1565c0;
  color: white;
  padding: 0.75rem 1.2rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #1565c0;
  border-color: #1565c0;
}

@media (max-width: 768px) {
  .btn-icon-only {
    padding: 0.6rem; /* Smaller on mobile */
    height: 40px;
  }

  .btn-icon-only svg {
    width: 14px;
    height: 14px;
  }

  .logout-btn {
    padding: 0.6rem 1rem;
    height: 40px;
    font-size: 0.9rem;
  }
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.no-results-content {
  max-width: 300px;
  margin: 0 auto;
}

.no-results-content svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results-content h4 {
  margin: 1rem 0 0.5rem 0;
  color: #495057;
}

.no-results-content p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Search highlight styling */
.search-highlight {
  background-color: #fff3cd;
  color: #856404;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 500;
}

/* Search input enhancements */
.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Loading state for search */
.search-container.loading .search-icon {
  animation: spin 1s linear infinite;
}

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