/* ============================================
   CipherVault — Component Styles
   Updated per UI/UX Design Guide
   ============================================ */

/* File icons — forest green palette */
.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-icon-pdf {
  background: rgba(196, 69, 69, 0.12);
  color: var(--error, #c44545);
}
.file-icon-image {
  background: rgba(45, 106, 79, 0.12);
  color: var(--primary, #2d6a4f);
}
.file-icon-doc {
  background: rgba(45, 106, 79, 0.12);
  color: var(--primary, #2d6a4f);
}
.file-icon-video {
  background: rgba(212, 167, 44, 0.12);
  color: var(--accent, #d4a72c);
}
.file-icon-archive {
  background: rgba(212, 167, 44, 0.12);
  color: var(--accent, #d4a72c);
}
.file-icon-code {
  background: rgba(74, 158, 255, 0.12);
  color: var(--info, #4a9eff);
}
.file-icon-default {
  background: rgba(140, 150, 142, 0.15);
  color: var(--muted-foreground, #8f968e);
}

.dark .file-icon-pdf {
  background: rgba(209, 81, 81, 0.15);
}
.dark .file-icon-image {
  background: rgba(64, 145, 108, 0.15);
}
.dark .file-icon-doc {
  background: rgba(64, 145, 108, 0.15);
}
.dark .file-icon-video {
  background: rgba(224, 185, 74, 0.15);
}
.dark .file-icon-archive {
  background: rgba(224, 185, 74, 0.15);
}
.dark .file-icon-code {
  background: rgba(74, 158, 255, 0.15);
}
.dark .file-icon-default {
  background: rgba(84, 90, 100, 0.2);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-card) 25%,
    var(--surface-hover) 50%,
    var(--surface-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.dark .skeleton {
  background: linear-gradient(90deg, #1a1d24 25%, #262a33 50%, #1a1d24 75%);
  background-size: 200% 100%;
}

/* Drop zone */
.drop-zone {
  transition: all 0.2s;
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
}
.drop-zone.dragover {
  border-color: var(--primary) !important;
  background: rgba(45, 106, 79, 0.06) !important;
}
.dark .drop-zone.dragover {
  background: rgba(64, 145, 108, 0.08) !important;
}

/* File list enter animations */
.file-list-enter {
  animation: slideUp 0.3s ease forwards;
  opacity: 0;
}
.file-list-enter:nth-child(1) {
  animation-delay: 0s;
}
.file-list-enter:nth-child(2) {
  animation-delay: 0.05s;
}
.file-list-enter:nth-child(3) {
  animation-delay: 0.1s;
}
.file-list-enter:nth-child(4) {
  animation-delay: 0.15s;
}
.file-list-enter:nth-child(5) {
  animation-delay: 0.2s;
}

@media (max-width: 640px) {
  .file-actions-responsive {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}
