/*
 * Copyright (C) 2025 Jema Technology
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

/* JemaOS Gallery - Simple List Layout Styles */

/* List Container */
.file-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: var(--space-md);
}

/* File Item Base Styles */
.file-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 2px;
}

.file-item:hover {
  background-color: var(--surface-variant);
}

.file-item.selected {
  background-color: rgba(var(--primary-rgb), 0.1);
}

/* Checkbox */
.file-checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* File Icon */
.file-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: var(--surface-variant);
}

.file-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.file-icon-image {
  color: var(--primary-color);
}

.file-icon-video {
  color: var(--error-color);
}

.file-icon-audio {
  color: #a142f4;
}

.file-icon-pdf {
  color: var(--success-color);
}

.file-icon-default {
  color: var(--on-surface-variant);
}

/* File Name */
.file-name {
  font-size: 14px;
  color: var(--on-surface);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--on-surface-variant);
}

.empty-message {
  text-align: center;
}

.empty-message .material-icons {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--on-surface-variant);
}
