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

.album_images-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.album_images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.album_images-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.album_images-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background-color: #f0f0f0;
}

.album_images-image img.album_images-thumbnail {
  max-width: 100%;
  /* height: 150px; */
  min-height: 150px;
}

.no-image {
  background: #f4f4f4;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.album_images-content {
  padding: 15px;
}

.album_images-title {
  font-size: 1.5em;
  margin: 0 0 10px;
}

.album_images-excerpt {
  margin: 0 0 10px;
  color: #555;
}

.album_images-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.album_images-date {
  color: #888;
}

.add-album_images-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.add-album_images-form label {
  font-weight: bold;
}

.add-album_images-form .form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.add-album_images-form .form-control-file {
  padding: 8px 0;
}

.add-album_images-form textarea {
  resize: vertical;
}

.form-actions {
  text-align: right;
}

.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.modal-body .album_images-title {
  margin-top: 0;
}

.album_images-image-container {
  text-align: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.album_images-image-container img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.album_images-content-full {
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

.album_images-date {
  color: #6c757d;
  font-style: italic;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.modal-xl {
  max-width: 90%;
}

.modal-xl .modal-body {
  padding: 20px;
}

.form-control[readonly] {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
  cursor: not-allowed;
}

#album_images_metadata {
  font-size: 14px;
  line-height: 1.8;
}

#album_images_metadata strong {
  color: #495057;
  font-weight: 600;
}

.modal-footer .btn {
  margin-left: 10px;
}

.modal-footer .btn i {
  margin-right: 5px;
}

.loading-spinner {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner i {
  color: #007bff;
  margin-bottom: 15px;
}

.loading-spinner p {
  color: #6c757d;
  margin: 0;
}

.alert-danger {
  border-color: #dc3545;
  background-color: #f8d7da;
  color: #721c24;
}

@media (max-width: 768px) {
  .modal-xl {
    max-width: 95%;
    margin: 10px;
  }

  .modal-xl .modal-body {
    padding: 15px;
  }

  .album_images-image-container img {
    max-height: 300px;
  }
}

#album_imagesModal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#album_imagesModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 20px 25px;
}

#album_imagesModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

#album_imagesModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#album_imagesModal .btn-close:hover {
  opacity: 1;
}

#album_imagesModal .modal-body {
  padding: 25px;
  line-height: 1.8;
}

#album_imagesModal .album_images-content-full {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

#album_imagesModal .album_images-content-full p {
  margin-bottom: 15px;
}

#album_imagesModal .text-muted {
  font-size: 14px;
  display: block;
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.album_images-title[dir="rtl"],
.album_images-excerpt[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.album_images-title[dir="ltr"],
.album_images-excerpt[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.album_images-filter-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.album_images-filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.album_images-filter-toggle:focus {
    outline: none;
}

.album_images-filter-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.filter-toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.album_images-filter-container.expanded .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-panel-content {
    display: none;
    margin-top: 15px;
}

.album_images-filter-container.expanded .filter-panel-content {
    display: block;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab-button {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-tab-button:hover {
    background-color: #e9ecef;
}

.filter-tab-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-content {
    display: none;
}

.filter-content.active {
    display: block;
}

.filter-form-group {
    margin-bottom: 15px;
}

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

.filter-form-group input,
.filter-form-group select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.filter-buttons .btn-reset {
    background-color: #6c757d;
    color: white;
}

.filter-buttons .btn-reset:hover {
    background-color: #5a6268;
}

.album_images-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination-list .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-list .page-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.pagination-list .page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#album-images-results {
    transition: opacity 0.2s ease;
}

.filter-info {
    padding: 10px 15px;
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    color: #1976d2;
}

.filter-results-info {
    text-align: center;
    padding: 10px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
    }
    
    .filter-form-group input,
    .filter-form-group select {
        max-width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-buttons .btn {
        width: 100%;
    }
}
