/**
 * Image Manager UI - Image-specific Styles
 * Requires: management/common/managementUI.css
 */

/* Hidden file input */
.image-manager-file-input {
  display: none;
}

/* Image list */
.image-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual image item */
.image-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.image-item:hover {
  border-color: #4CAF50;
  background: #f0f8f0;
}

/* Thumbnail */
.image-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 16px;
  border: 1px solid #ddd;
  background: #fff;
}

/* Image info */
.image-info {
  flex: 1;
  min-width: 0;
}

.image-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-meta {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Action buttons */
.image-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.image-action-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
  font-weight: 500;
}

.image-action-btn:hover {
  border-color: #4CAF50;
  color: #4CAF50;
  background: #f0f8f0;
}

.image-action-btn.delete-btn:hover {
  border-color: #f44336;
  color: #f44336;
  background: #ffebee;
}

.image-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.image-action-btn:disabled:hover {
  border-color: #ddd;
  color: #666;
  background: white;
}

/* Storage info */
.storage-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-label {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.storage-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.storage-bar-fill {
  height: 100%;
  background: #4CAF50;
  transition: width 0.3s, background 0.3s;
  border-radius: 4px;
}

.storage-bar-fill.warning {
  background: #ff9800;
}

.storage-bar-fill.danger {
  background: #f44336;
}

.storage-text {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .image-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .image-thumbnail {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .image-info {
    width: 100%;
  }

  .image-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .image-action-btn {
    flex: 1;
  }
}
