/* Clean professional file transfer app styles */
:root {
  color-scheme: dark;
  color: #e2e8f0;
  background: #020617;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(var(--color-primary-rgb, 59, 130, 246), 0.18) 0%, transparent 35%),
              linear-gradient(180deg, #050816 0%, #0c1225 100%);
  color: #e2e8f0;
}

button,
a {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 24px 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-logo span {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links form {
  margin: 0;
}

.nav-link-button {
  background: transparent;
  color: #cbd5e1;
  padding: 0;
}

.nav-link-button:hover {
  color: #ffffff;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero-block {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.landing-flow {
  display: grid;
  gap: 42px;
}

.landing-intro {
  max-width: 980px;
}

.upload-studio {
  max-width: 780px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.upload-studio h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.upload-studio .upload-card {
  margin-top: 14px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1.25fr 1fr;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 0;
  line-height: 0.95;
  color: #f8fafc;
}

.hero-copy {
  max-width: 640px;
  font-size: 1.05rem;
  color: #cbd5e1;
  margin: 24px 0 0;
}

.primary-action {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb, 59, 130, 246), 0.25);
  transition: all 0.2s ease;
}

.primary-action:hover {
  background: var(--color-primary-dark);
}

.feature-cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
}

.feature-card h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.hero-visual {
  min-height: 440px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb, 59, 130, 246),0.15), rgba(15,23,42,0.95));
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero-visual .visual-card {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.hero-visual .visual-card h4 {
  margin: 0 0 18px;
}

.upload-card {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.upload-card p {
  margin: 0;
  color: #cbd5e1;
}

.upload-limit-notice {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--color-primary-rgb, 56, 189, 248), 0.25);
  background: rgba(var(--color-primary-rgb, 14, 116, 144), 0.14);
  color: #dbeafe;
}

.upload-limit-notice strong {
  color: #f8fafc;
}

.upload-zone {
  margin-top: 24px;
  border-radius: 24px;
  border: 2px dashed rgba(148, 163, 184, 0.4);
  padding: 36px;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-zone:hover {
  border-color: var(--color-primary-light);
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.08);
}

.upload-zone input {
  display: none;
}

.upload-zone strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.upload-zone small {
  display: block;
  color: #94a3b8;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 22px;
}

.action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.action-group a,
.action-group button,
.action-group form > button {
  min-height: 38px;
  min-width: 110px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-group .primary-action {
  margin-top: 0;
}

.action-group.actions-medium a,
.action-group.actions-medium button,
.action-group.actions-medium form > button {
  min-height: 44px;
  min-width: 148px;
  padding: 12px 20px;
}

.action-group.actions-compact a,
.action-group.actions-compact button,
.action-group.actions-compact form > button {
  min-height: 38px;
  min-width: 108px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.upload-actions button {
  color: #ffffff;
}

.upload-actions button.secondary {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.status-box {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.18);
  min-height: 72px;
}

.status-box p {
  margin: 0;
}

/* Upload Progress Bar */
.upload-progress-bar {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.25);
  animation: fadeIn 0.3s ease-out;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.progress-filename {
  color: #e2e8f0;
  font-weight: 500;
  word-break: break-word;
  max-width: 70%;
}

.progress-percent {
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 4px;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb, 59, 130, 246), 0.5);
}

.file-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.file-card {
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.file-card .file-info {
  flex: 1;
}

.file-card strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-card span {
  color: #94a3b8;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.file-actions a,
.file-actions button {
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 36px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.file-actions a {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.12);
  color: var(--color-primary-light);
  text-decoration: none;
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
}

.file-actions a:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
  border-color: rgba(var(--color-primary-rgb, 59, 130, 246), 0.35);
  transform: translateY(-1px);
}

.file-actions button {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.file-actions button:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-1px);
}

.delete-file-btn {
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 36px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 0.2s ease;
}

.delete-file-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.danger-link-button {
  background: transparent;
  color: #ef4444;
  padding: 0;
  margin-left: 12px;
}

.download-layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.download-page-cta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-page-cta p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.download-page-cta .secondary-action {
  padding: 10px 16px;
}

.download-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.3fr 0.7fr;
}

.download-timer {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--color-primary-rgb, 56, 189, 248), 0.24);
  background: rgba(var(--color-primary-rgb, 14, 116, 144), 0.14);
  color: #dbeafe;
}

.secondary-action {
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}

.download-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.download-actions > a,
.download-actions > button,
.download-actions > form {
  width: 100%;
  margin: 0;
}

.download-actions > a,
.download-actions > button,
.download-actions > form > button {
  min-height: 46px;
  width: 100%;
}

.disabled-action {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.35);
}

.download-ad {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.94);
  padding: 24px;
}

.download-ad h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.download-ad p {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.ad-cta {
  margin-top: 18px;
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.16);
  color: #ffffff;
  text-decoration: none;
}

.admin-panel,
.user-panel {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.panel-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 320px;
}

.panel-card {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 26px;
}

.panel-card h3 {
  margin-top: 0;
  color: #ffffff;
}

.panel-menu {
  display: grid;
  gap: 14px;
}

.panel-menu a {
  display: block;
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  text-decoration: none;
}

.panel-menu button {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
}

.panel-menu a:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.18);
}

.panel-menu button:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.18);
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 24px;
  overflow: hidden;
}

.table-tools {
  margin: 18px 0 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
}

.table-tools input,
.table-tools select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  min-height: 40px;
  padding: 8px 12px;
}

.file-table th,
.file-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.file-table th {
  color: var(--color-primary-light);
  background: rgba(15, 23, 42, 0.98);
}

.sort-header-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-header-btn .sort-indicator {
  font-size: 0.8rem;
  opacity: 0.6;
}

.sort-header-btn.is-active {
  color: #7dd3fc;
}

.sort-header-btn.is-active .sort-indicator {
  opacity: 1;
}

.sort-header-btn[data-direction="asc"] .sort-indicator {
  content: "";
}

.sort-header-btn[data-direction="asc"] .sort-indicator::before {
  content: "↑";
}

.sort-header-btn[data-direction="asc"] .sort-indicator {
  font-size: 0;
}

.sort-header-btn[data-direction="desc"] .sort-indicator {
  font-size: 0;
}

.sort-header-btn[data-direction="desc"] .sort-indicator::before {
  content: "↓";
  font-size: 0.8rem;
}

.file-table tr:last-child td {
  border-bottom: none;
}

.file-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.dashboard-file-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-file-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 4px;
  max-width: 168px;
}

.admin-file-actions > a,
.admin-file-actions > button,
.admin-file-actions > form,
.admin-file-actions > form > button {
  width: 100%;
}

.admin-file-actions > a,
.admin-file-actions > button,
.admin-file-actions > form > button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.7rem;
  justify-content: center;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-file-actions .action-with-icon {
  gap: 4px;
}

.admin-file-actions .action-icon {
  width: 12px;
  height: 12px;
}

.admin-file-actions .action-icon svg {
  width: 12px;
  height: 12px;
}

.dashboard-file-actions > a,
.dashboard-file-actions > button,
.dashboard-file-actions .inline-rename-form > button {
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 32px;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.action-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-file-actions > a {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.15);
  color: var(--color-primary-light);
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.25);
}

.dashboard-file-actions > a:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.25);
  border-color: rgba(var(--color-primary-rgb, 59, 130, 246), 0.4);
}

.dashboard-file-actions > button {
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-file-actions > button:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.3);
}

/* Batch Delete Button */
.batch-delete-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.batch-delete-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* File Checkboxes */
.file-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

#selectAllFiles {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}
.admin-share-btn {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #86efac !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}

.admin-share-btn:hover {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}

.admin-rename-toggle-btn {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.15) !important;
  color: var(--color-primary-light) !important;
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.25) !important;
}

.admin-rename-toggle-btn:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.25) !important;
  border-color: rgba(var(--color-primary-rgb, 59, 130, 246), 0.4) !important;
}

.admin-rename-btn {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.15) !important;
  color: var(--color-primary-light) !important;
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.25) !important;
}

.admin-rename-btn:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.25) !important;
  border-color: rgba(var(--color-primary-rgb, 59, 130, 246), 0.4) !important;
}

.admin-delete-btn {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.admin-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.dashboard-file-actions .rename-toggle-btn {
  background: rgba(var(--color-primary-rgb, 56, 189, 248), 0.2);
  color: var(--color-primary-light);
}

.inline-rename-form {
  display: none;
  align-items: center;
  gap: 8px;
}

.inline-rename-form.is-open {
  display: inline-flex;
}

.admin-file-actions .inline-rename-form.is-open {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto auto;
  width: 100%;
}

.admin-file-actions .inline-rename-form .rename-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.admin-file-actions .inline-rename-form .rename-input-base {
  flex: 1;
  min-height: 24px;
  padding: 6px 8px;
  font-size: 0.74rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
}

.admin-file-actions .inline-rename-form .rename-extension {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.inline-rename-form input {
  width: 180px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 8px 10px;
}

.inline-rename-form button {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}

/* Share Modal Styles */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.share-modal {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 24px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.share-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
  word-break: break-word;
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.share-modal-close:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.share-modal-options {
  display: grid;
  gap: 12px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-option:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(2px);
}

.share-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}

.share-label {
  flex: 1;
  text-align: left;
}

.inline-rename-form .rename-cancel-btn {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.dashboard-file-actions .danger-link-button {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  margin-left: 0;
  padding: 8px 12px;
}

.admin-file-actions .danger-link-button {
  grid-column: 1 / -1;
}

.dashboard-file-actions .danger-link-button:hover {
  background: rgba(239, 68, 68, 0.32);
}

.file-actions .delete-file-btn.action-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  color: #fff;
  display: none;
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease-out forwards;
  max-width: 90%;
  word-break: break-word;
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

.toast.hiding {
  animation: slideUp 0.3s ease-in forwards;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 70;
}

.confirm-modal.is-open {
  display: flex;
}

.confirm-dialog {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.98);
  padding: 20px;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(10px);
}

.confirm-dialog h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.1rem;
}

.confirm-dialog p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.confirm-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-actions button {
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.confirm-no {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.confirm-yes {
  background: #ef4444;
  color: #fff;
}

@media (max-width: 960px) {
  .hero-grid,
  .panel-grid,
  .feature-cards,
  .download-shell {
    grid-template-columns: 1fr;
  }

  .table-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-block,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .download-page-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-rename-form {
    width: 100%;
  }

  .inline-rename-form input {
    flex: 1;
    width: auto;
  }

  .admin-file-actions {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .admin-file-actions .inline-rename-form.is-open {
    grid-template-columns: 1fr;
  }
}

/* Delete Modal Styles */
.delete-modal {
  max-width: 420px;
}

.delete-modal-content {
  margin-bottom: 20px;
  text-align: center;
}

.delete-modal-filename {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
  margin: 0 0 12px 0;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 3px solid rgba(239, 68, 68, 0.4);
}

.delete-modal-warning {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.delete-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.delete-modal-cancel,
.delete-modal-confirm {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.delete-modal-cancel {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.delete-modal-cancel:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.2);
}

.delete-modal-confirm {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
}

.delete-modal-confirm:hover:not(:disabled) {
  background: rgba(239, 68, 68, 1);
  transform: translateY(-1px);
}

.delete-modal-cancel:disabled,
.delete-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Rename Modal Styles */
.rename-modal .share-modal-header {
  border-bottom: 1px solid rgba(var(--color-primary-rgb, 56, 189, 248), 0.2);
}

.rename-modal-content {
  padding: 24px;
  text-align: left;
}

.rename-modal-label {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 8px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rename-modal-current {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0;
  font-weight: 500;
  word-break: break-all;
}

.rename-modal-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(var(--color-primary-rgb, 56, 189, 248), 0.2);
}

.rename-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0f2fe;
  font-size: 14px;
  padding: 0;
  outline: none;
  font-family: monospace;
}

.rename-modal-input::placeholder {
  color: #64748b;
}

.rename-modal-extension {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.rename-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 24px 24px 24px;
}

.rename-modal-cancel,
.rename-modal-confirm {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.rename-modal-cancel {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.rename-modal-cancel:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.2);
}

.rename-modal-confirm {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.85);
  color: #ffffff;
}

.rename-modal-confirm:hover:not(:disabled) {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 1);
  transform: translateY(-1px);
}

.rename-modal-cancel:disabled,
.rename-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
