@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles can be added below */
@layer base {
  :root {
    --color-primary: #10b981;
    --color-secondary: #6b7280;
  }

  [data-theme="dark"] {
    --color-primary: #10b981;
    --color-secondary: #9ca3af;
  }
}

/* PDF List Container Styles */
.pdf-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  min-height: 150px;
  width: 100%;
}

.dark .pdf-list-container {
  background-color: #1f2937;
}

.pdf-item {
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 100px;
}

.dark .pdf-item {
  background-color: #374151;
  border-color: #4b5563;
}

.pdf-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pdf-item .file-name {
  font-size: 0.875rem;
  color: #374151;
  word-break: break-all;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.dark .pdf-item .file-name {
  color: #e5e7eb;
}

.pdf-item .controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: auto;
}

.pdf-item .controls button {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.pdf-item .controls button:hover {
  opacity: 0.8;
}

.pdf-item .controls .move-up,
.pdf-item .controls .move-down {
  background-color: #e5e7eb;
  color: #374151;
}

.dark .pdf-item .controls .move-up,
.dark .pdf-item .controls .move-down {
  background-color: #4b5563;
  color: #e5e7eb;
}

.pdf-item .controls .remove {
  background-color: #ef4444;
  color: white;
}

/* Empty state message */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.dark .empty-state {
  color: #9ca3af;
}

@media (max-width: 640px) {
  .pdf-list-container {
    grid-template-columns: 1fr;
  }

  .pdf-item {
    min-height: 80px;
  }

  .pdf-item .controls {
    flex-wrap: wrap;
  }

  .pdf-item .controls button {
    padding: 0.2rem 0.4rem;
    font-size: 0.875rem;
  }
}
