/* Saved Designs Styling */
.saved-designs-container {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

.saved-design-item {
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.saved-design-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.saved-design-item .card-body {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

/* Thumbnails container */
.thumbnails-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.thumbnail-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumbnail-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.design-thumbnail {
  width: 100%;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
}

.outside-thumbnail {
  background-color: #f0f8ff; /* Light blue for outside */
}

.inside-thumbnail {
  background-color: #f0fff0; /* Light green for inside */
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #aaa;
  font-size: 2rem;
}

.design-info {
  flex-grow: 1;
}

.design-name {
  margin-bottom: 5px;
  font-weight: 600;
  word-break: break-word;
}

.design-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.design-actions {
  display: flex;
  gap: 8px;
}

.no-designs {
  text-align: center;
  padding: 20px;
  color: #777;
  font-style: italic;
}

/* Add these styles to the saved-designs.css file */

.security-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #28a745;
  color: white;
  font-size: 10px;
}

.security-badge.insecure {
  background-color: #dc3545;
}

.security-badge i {
  font-size: 10px;
}

.encrypt-design {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.encrypt-design:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .thumbnails-container {
    flex-direction: column;
  }

  .thumbnail-wrapper {
    width: 100%;
  }

  .design-thumbnail {
    height: 120px;
  }

  .design-actions {
    width: 100%;
    justify-content: space-between;
  }
}
