/* Reset & Basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: rgba(255, 255, 255, 0.85);
  --bg-secondary: rgba(246, 246, 246, 0.9);
  --bg-tertiary: rgba(240, 240, 240, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  background: #f0eff4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(64, 83, 206, 0.6) 0%, rgba(76, 79, 173, 0.5) 100%);
  top: -100px;
  left: -100px;
  animation: blob1Move 25s ease-in-out infinite, blob1Spin 30s linear infinite;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, rgba(239, 112, 138, 0.5) 0%, rgba(247, 126, 132, 0.6) 100%);
  top: 50%;
  right: -150px;
  animation: blob2Move 20s ease-in-out infinite, blob2Spin 25s linear infinite reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(49, 146, 170, 0.5) 0%, rgba(31, 85, 147, 0.6) 100%);
  bottom: -100px;
  left: 30%;
  animation: blob3Move 22s ease-in-out infinite, blob3Spin 28s linear infinite;
}

@keyframes blob1Move {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(100px, 80px);
  }

  50% {
    transform: translate(50px, 150px);
  }

  75% {
    transform: translate(-50px, 100px);
  }
}

@keyframes blob1Spin {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }

  25% {
    border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
  }

  50% {
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
  }

  75% {
    border-radius: 60% 40% 40% 60% / 40% 50% 50% 40%;
  }

  100% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
}

@keyframes blob2Move {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-120px, -60px);
  }

  50% {
    transform: translate(-80px, 80px);
  }

  75% {
    transform: translate(-40px, -40px);
  }
}

@keyframes blob2Spin {
  0% {
    border-radius: 60% 40% 40% 60% / 50% 60% 40% 50%;
  }

  25% {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }

  50% {
    border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%;
  }

  75% {
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  }

  100% {
    border-radius: 60% 40% 40% 60% / 50% 60% 40% 50%;
  }
}

@keyframes blob3Move {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-60px, -100px);
  }

  50% {
    transform: translate(80px, -60px);
  }

  75% {
    transform: translate(40px, -120px);
  }
}

@keyframes blob3Spin {
  0% {
    border-radius: 50% 50% 60% 40% / 40% 50% 50% 60%;
  }

  25% {
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
  }

  50% {
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  }

  75% {
    border-radius: 50% 50% 40% 60% / 40% 50% 60% 40%;
  }

  100% {
    border-radius: 50% 50% 60% 40% / 40% 50% 50% 60%;
  }
}

main {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
}

/* macOS Window Controls */
.window-controls {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 16px;
  left: 20px;
}

.window-controls .circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.window-controls .red {
  background: #ff5f57;
}

.window-controls .yellow {
  background: #febc2e;
}

.window-controls .green {
  background: #28c840;
}

/* ===== SIMPLE NAVIGATION ===== */
.nav-simple {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.nav-link {
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-tertiary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: -0.02em;
}

.nav-link:hover {
  color: var(--text-secondary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-divider {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
}

/* ===== TAB CONTENT ===== */
.tab-content-wrapper {
  position: relative;
}

.tab-content {
  display: none !important;
  opacity: 0;
}

.tab-content.active {
  display: flex !important;
  opacity: 1;
  animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Dashboard Layout */
.dashboard-content {
  gap: 32px;
  min-height: 360px;
  flex-direction: row;
}

/* Upload Section */
.upload-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Dropzone */
.dropzone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.04);
}

.dropzone.drag-over {
  transform: scale(1.01);
}

.dropzone.has-files {
  border-color: var(--success);
  background: rgba(52, 199, 89, 0.06);
}

.dropzone-content {
  text-align: center;
  pointer-events: none;
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.dropzone.drag-over .dropzone-icon,
.dropzone:hover .dropzone-icon {
  color: var(--accent);
}

.dropzone.has-files .dropzone-icon {
  color: var(--success);
}

.dropzone-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.dropzone-subtext {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== TEXT INPUT AREA ===== */
.text-input-area {
  flex: 1;
  display: flex;
  min-height: 200px;
}

.text-input-area textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input-area textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.text-input-area textarea::placeholder {
  color: var(--text-tertiary);
  font-family: inherit;
}

/* Text Options */
.text-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-row {
  display: flex;
  gap: 12px;
}

.duration-field,
.language-field {
  flex: 1;
}

.duration-field label,
.language-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.duration-field select,
.language-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.duration-field select:focus,
.language-field select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Upload Options */
.upload-options {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.password-field {
  flex: 1;
}

.password-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.input-wrapper input::placeholder {
  color: var(--text-tertiary);
}

/* Upload Button */
.upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.upload-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.upload-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-btn svg {
  width: 16px;
  height: 16px;
}

/* Upload Status */
.upload-status {
  font-size: 12px;
  min-height: 18px;
}

.upload-status.success {
  color: var(--success);
}

.upload-status.error {
  color: var(--danger);
}

/* Files Section */
.files-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  padding-left: 32px;
}

.files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.files-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Files Header Top */
.files-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Show All Button */
.show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.show-all-btn svg {
  width: 16px;
  height: 16px;
}

.show-all-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.show-all-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.show-all-btn.active:hover {
  background: var(--accent-hover);
}

/* Date Filter */
.date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-filter input[type="date"] {
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  cursor: pointer;
}

.date-filter input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* Date Navigation Buttons */
.date-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.date-nav-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.date-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.date-nav-btn:hover svg {
  color: white;
}

.date-nav-btn:active {
  transform: scale(0.95);
}

/* File List */
.file-list {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 300px;
}

.file-list::-webkit-scrollbar {
  width: 6px;
}

.file-list::-webkit-scrollbar-track {
  background: transparent;
}

.file-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.no-files {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* File Item */
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.2s;
  animation: slideIn 0.3s ease backwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.file-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Clickable Text Items */
.text-item[style*="cursor: pointer"]:hover {
  background: rgba(0, 113, 227, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.text-item[style*="cursor: pointer"]:active {
  transform: translateY(0);
}

/* File Icon */
.file-icon-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.file-icon-wrapper svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.file-icon-wrapper.pdf svg {
  color: #ff3b30;
}

.file-icon-wrapper.doc svg {
  color: #0071e3;
}

.file-icon-wrapper.xls svg {
  color: #34c759;
}

.file-icon-wrapper.img svg {
  color: #ff9500;
}

.file-icon-wrapper.code {
  background: linear-gradient(135deg, #5856d6 0%, #af52de 100%);
  border-color: rgba(88, 86, 214, 0.3);
}

.file-icon-wrapper.code svg {
  color: white;
}

.file-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* Locked File Icon */
.file-icon-wrapper.locked {
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  border-color: rgba(255, 149, 0, 0.3);
}

.file-icon-wrapper.locked svg {
  color: white;
}

/* File Info */
.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.file-type {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.file-locked {
  display: flex;
  align-items: center;
  gap: 3px;
}

.file-locked svg {
  width: 10px;
  height: 10px;
}

/* Duration Badge */
.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.duration-badge.permanent {
  color: var(--success);
  background: rgba(52, 199, 89, 0.1);
}

.duration-badge svg {
  width: 10px;
  height: 10px;
}

/* File Actions */
.file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Action Buttons */
.download-btn,
.view-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}

.download-btn:hover,
.view-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.download-btn svg,
.view-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.download-btn:hover svg,
.view-btn:hover svg {
  color: white;
}

/* Delete Button */
.delete-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.delete-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.delete-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.delete-btn:hover svg {
  color: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-large {
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--bg-tertiary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.modal-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-input-wrapper {
  margin-bottom: 20px;
}

.modal-input-wrapper input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.modal-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-secondary,
.btn-primary {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #e5e5e5;
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Text View Modal */
.text-view-content {
  flex: 1;
  overflow: auto;
  background: #282c34;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.text-view-content pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
}

.text-view-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #abb2bf;
}

/* Copy Button */
.copy-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.copy-btn:hover svg {
  color: white;
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
}

.copy-btn.copied svg {
  color: white;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
  main {
    padding: 44px 24px 28px;
    margin: 10px;
  }

  .nav-simple {
    gap: 6px;
  }

  .nav-link {
    font-size: 18px;
  }

  .nav-divider {
    font-size: 18px;
  }

  .dashboard-content {
    flex-direction: column;
    gap: 28px;
  }

  .files-section {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 24px;
  }

  .upload-options {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-btn {
    justify-content: center;
  }

  .option-row {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  main {
    padding: 40px 16px 24px;
    margin: 0;
    border-radius: var(--radius-md);
  }

  .nav-simple {
    gap: 6px;
  }

  .nav-link {
    font-size: 16px;
  }

  .nav-divider {
    font-size: 16px;
  }

  .dropzone {
    min-height: 160px;
  }

  .dropzone-icon {
    width: 36px;
    height: 36px;
  }

  .dropzone-text {
    font-size: 13px;
  }

  .dropzone-subtext {
    font-size: 11px;
  }

  .password-field label,
  .duration-field label,
  .language-field label {
    font-size: 10px;
  }

  .input-wrapper input,
  .date-filter input[type="date"] {
    padding: 8px 10px 8px 30px;
    font-size: 12px;
  }

  .upload-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .files-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .files-header-top {
    width: 100%;
    justify-content: space-between;
  }

  .files-header h2 {
    font-size: 14px;
  }

  .show-all-btn {
    width: 26px;
    height: 26px;
  }

  .show-all-btn svg {
    width: 14px;
    height: 14px;
  }

  .date-filter {
    width: 100%;
  }

  .date-filter input[type="date"] {
    flex: 1;
  }

  .date-nav-btn {
    width: 26px;
    height: 26px;
  }

  .date-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .file-list {
    max-height: 250px;
  }

  .file-item {
    padding: 8px 10px;
    gap: 10px;
  }

  .file-icon-wrapper,
  .file-thumb {
    width: 32px;
    height: 32px;
  }

  .file-icon-wrapper svg {
    width: 16px;
    height: 16px;
  }

  .file-name {
    font-size: 12px;
  }

  .file-meta {
    font-size: 10px;
  }

  .file-actions {
    gap: 4px;
  }

  .download-btn,
  .view-btn,
  .delete-btn {
    width: 28px;
    height: 28px;
  }

  .download-btn svg,
  .view-btn svg,
  .delete-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Modal Mobile */
  .modal {
    margin: 16px;
    padding: 20px;
    max-width: calc(100% - 32px);
  }

  .modal-large {
    max-height: 70vh;
  }

  .modal-header h3 {
    font-size: 15px;
  }

  .modal-text {
    font-size: 12px;
  }

  .modal-input-wrapper input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn-secondary,
  .btn-primary {
    padding: 9px 14px;
    font-size: 12px;
  }

  .text-input-area textarea {
    min-height: 150px;
    font-size: 12px;
  }
}