/* Recycle Bin Panel Styles */

/* Panel Container */
.recycle-bin-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--bs-body-bg, #fff);
  border-left: 1px solid var(--bs-border-color, #dee2e6);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  overflow: hidden;
}

.recycle-bin-panel.visible {
  right: 0;
}

/* Panel Header */
.recycle-bin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-tertiary-bg, #f8f9fa);
}

.recycle-bin-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--bs-body-color, #212529);
}

.recycle-bin-title i {
  color: var(--bs-danger, #dc3545);
}

.recycle-bin-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recycle-bin-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bs-secondary, #6c757d);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.recycle-bin-close:hover {
  background: var(--bs-secondary-bg, #e9ecef);
  color: var(--bs-body-color, #212529);
}

.empty-bin-btn {
  font-size: 0.8rem;
}

/* Info Section */
.recycle-bin-info {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-warning-bg-subtle, #fff3cd);
}

/* Panel Content */
.recycle-bin-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Stats */
.recycle-bin-stats {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

/* Loading State */
.recycle-bin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--bs-secondary, #6c757d);
  gap: 0.75rem;
}

.recycle-bin-loading i {
  font-size: 1.5rem;
  color: var(--bs-danger, #dc3545);
}

/* Error State */
.recycle-bin-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--bs-danger, #dc3545);
  gap: 0.75rem;
  text-align: center;
}

/* Empty State */
.recycle-bin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--bs-secondary, #6c757d);
  text-align: center;
}

.recycle-bin-empty i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.recycle-bin-empty p {
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
}

/* Deleted Blocks List */
.deleted-blocks-list {
  padding: 0;
}

.deleted-block-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  transition: background-color 0.2s;
  gap: 1rem;
}

.deleted-block-item:hover {
  background: var(--bs-tertiary-bg, #f8f9fa);
}

.deleted-block-info {
  flex: 1;
  min-width: 0;
}

.deleted-block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.block-type-icon {
  color: var(--bs-secondary, #6c757d);
  font-size: 1rem;
}

.block-title {
  font-weight: 500;
  color: var(--bs-body-color, #212529);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.block-type-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  text-transform: uppercase;
}

.deleted-block-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--bs-secondary, #6c757d);
}

.deleted-date,
.days-until-purge {
  display: flex;
  align-items: center;
}

.days-until-purge.text-warning {
  color: var(--bs-warning, #ffc107) !important;
  font-weight: 500;
}

.deleted-block-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deleted-block-actions .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.restore-block-btn {
  min-width: 38px;
}

.permanent-delete-btn {
  min-width: 38px;
}

/* Recycle Bin Badge in Menu */
#recycle-bin-count {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  min-width: 1.5rem;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .recycle-bin-panel {
  background: #1e1e1e;
  border-color: #333;
  color: #e9ecef;
}

[data-bs-theme="dark"] .recycle-bin-header {
  background: #2d2d2d;
  border-color: #333;
}

[data-bs-theme="dark"] .recycle-bin-title {
  color: #e9ecef;
}

[data-bs-theme="dark"] .recycle-bin-info {
  background: #3d3520;
  border-color: #5a4d2d;
}

[data-bs-theme="dark"] .recycle-bin-stats {
  border-color: #333;
}

[data-bs-theme="dark"] .deleted-block-item {
  border-bottom-color: #333;
}

[data-bs-theme="dark"] .deleted-block-item:hover {
  background: #2d2d2d;
}

[data-bs-theme="dark"] .block-title {
  color: #e9ecef;
}

[data-bs-theme="dark"] .deleted-block-meta {
  color: #adb5bd;
}

[data-bs-theme="dark"] .recycle-bin-empty,
[data-bs-theme="dark"] .recycle-bin-loading {
  color: #adb5bd;
}

[data-bs-theme="dark"] .recycle-bin-close {
  color: #adb5bd;
}

[data-bs-theme="dark"] .recycle-bin-close:hover {
  background: #3d3d3d;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .recycle-bin-panel {
    width: 100%;
    right: -100%;
  }

  .deleted-block-item {
    flex-direction: column;
    align-items: stretch;
  }

  .deleted-block-actions {
    flex-direction: row;
    margin-top: 0.75rem;
  }

  .block-title {
    max-width: 100%;
  }
}
