/* Modern Custom Styles for DocShare PHP */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --dark: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(226, 232, 240, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: radial-gradient(circle at top left, #f8fafc, #edf2f7, #f1f5f9);
  color: #1e293b;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Gradients & Glows */
.bg-glow-1 {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 0 15px rgba(0, 0, 0, 0.02);
}

/* Dropzone Styles */
.dropzone {
  border: 2px dashed #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(248, 250, 252, 0.6);
}

.dropzone:hover, .dropzone.drag-active {
  border-color: #6366f1;
  background: rgba(238, 242, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(99, 102, 241, 0.2);
}

/* Document Types Badges */
.badge-pdf { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.badge-word { background-color: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-excel { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-pptx { background-color: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }

/* Word Document Render Styles */
.document-content {
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  color: #1e293b;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .document-content {
    padding: 24px 16px;
    border-radius: 8px;
  }
}

.document-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.document-content h1, .document-content h2, .document-content h3 {
  color: #0f172a;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  font-weight: 700;
}

.document-content p {
  margin-bottom: 1em;
}

.document-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.document-content table, .document-content th, .document-content td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
}

.document-content th {
  background-color: #f8fafc;
  font-weight: 600;
}

/* Excel Table Custom Styles */
.excel-table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
}

.excel-table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.excel-table-container th, .excel-table-container td {
  padding: 8px 14px;
  border: 1px solid #f1f5f9;
  white-space: nowrap;
}

.excel-table-container tr:nth-child(even) {
  background-color: #f8fafc;
}

.excel-table-container tr:hover {
  background-color: #f1f5f9;
}

.excel-table-container th {
  background-color: #e2e8f0;
  font-weight: 600;
  color: #334155;
  position: sticky;
  top: 0;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  font-weight: 500;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
