/* Drop zone */
.drop-zone.dragover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

/* Toast animations */
.toast {
  animation: toastFadeIn 0.3s ease-out;
}

.toast.exit {
  animation: toastFadeOut 0.3s ease-in forwards;
}

.toast.slide-in {
  animation: toastSlideIn 0.3s ease-out;
}

.toast.slide-out {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Modal backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* File card hover lift effect */
.file-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Context menu */
#context-menu {
  animation: contextMenuFadeIn 0.1s ease-out;
}

@keyframes contextMenuFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Code viewer */
.code-viewer pre {
  background: #1e1e1e !important;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

.code-viewer code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* DOCX viewer */
.docx-viewer {
  background: white;
  color: black;
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100%;
}

/* Terminal tabs */
.terminal-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  max-width: 160px;
}

.terminal-tab:hover {
  background: #334155;
  color: #e2e8f0;
}

.terminal-tab.active {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

.terminal-tab .tab-close {
  opacity: 0;
  transition: opacity 0.15s ease;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.terminal-tab:hover .tab-close {
  opacity: 1;
}

.terminal-tab .tab-close:hover {
  background: #ef4444;
  color: white;
}

.terminal-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.terminal-frame.active {
  display: block;
}
