/* Content Management Module Styles */

/* Basic layout styles */
.content-management-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Common card styles */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 15px 0 10px;
}

.card-title a {
  color: #333;
  text-decoration: none;
}

.card-title a:hover {
  color: black;
}

.card-text {
  color: var(--gray-700);
  line-height: 1.5;
}

/* Search and filter styles */
.search-input {
  position: relative;
  margin-bottom: 20px;
}

.search-text-input {
  padding: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

.form-select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

/* Button styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid #6c757d;
}

/* Tag link styles */
.tag-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.tag-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.tag-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-outline-secondary {
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

/* Tag styles */
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tag-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.875rem;
}

.tag-text {
  margin: 0;
  color: #6c757d;
}

.blue-card {
  background-color: #e3f2fd;
}

/* Admin actions styles for phone book */
.admin-actions {
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
  margin-top: 15px;
}

.admin-actions .btn {
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.admin-actions .btn-outline-primary {
  color: #007bff;
  border: 1px solid #007bff;
  background-color: transparent;
}

.admin-actions .btn-outline-primary:hover {
  color: white;
  background-color: #007bff;
  border-color: #007bff;
}

.admin-actions .btn-outline-danger {
  color: #dc3545;
  border: 1px solid #dc3545;
  background-color: transparent;
}

.admin-actions .btn-outline-danger:hover {
  color: white;
  background-color: #dc3545;
  border-color: #dc3545;
}

.admin-actions .btn i {
  font-size: 0.75rem;
}

.blue-card .tag-text {
  color: #1976d2;
}

/* Responsive design */
@media (max-width: 768px) {
  .content-management-wrapper {
    padding: 10px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .search-tags {
    gap: 6px;
  }

  .tag-card {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
}
