/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #0b0d12;
  --panel: #151922;
  --panel-2: #1c212d;
  --border: #2a3140;
  --text: #e7ebf3;
  --muted: #9aa4b8;
  --accent: #5b8cff;
  --accent-hover: #4a7bf0;
  --danger: #ff6b6b;
  --ok: #3ecf8e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 16px;
  background: var(--accent);
  color: white;
  transition: background 0.15s ease, opacity 0.15s ease;
}

button:hover {
  background: #4a7bf0;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

button.secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}

button.secondary:hover {
  background: #232a38;
}

button.ghost {
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-weight: 500;
}

button.ghost:hover {
  color: var(--text);
  background: var(--panel-2);
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  min-height: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.topbar h1 {
  font-size: 20px;
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.dropzone.drag {
  border-color: var(--accent);
  background: #141a28;
}

.dropzone strong {
  color: var(--text);
}

.uploading {
  cursor: default;
}

.upload-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.upload-name {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.spinner {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.upload-footer .ghost {
  margin: -6px -10px;
}

.upload-pct {
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Drive-style search bar */
.search {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search:focus-within {
  border-color: var(--accent);
  background: var(--panel);
}

.search-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.search .search-input {
  flex: 1 1;
  min-width: 0;
  width: auto;
  border: none;
  background: transparent;
  padding: 11px 0;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.search .search-input::placeholder {
  color: var(--muted);
}

.search-clear {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
}

.search-clear:hover {
  background: var(--border);
  color: var(--text);
}

.file-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.file-row:last-child {
  border-bottom: none;
}

.file-row:hover {
  background: var(--panel-2);
}

/* File-type icon, à la Drive */
.file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: #5a6477;
}

.file-icon.kind-image {
  background: #2bb673;
}
.file-icon.kind-video {
  background: #e9596b;
}
.file-icon.kind-audio {
  background: #b06bd6;
}
.file-icon.kind-pdf {
  background: #e2493b;
}
.file-icon.kind-archive {
  background: #c98a2b;
}
.file-icon.kind-doc {
  background: #4a7bf0;
}
.file-icon.kind-sheet {
  background: #2bb673;
}
.file-icon.kind-code {
  background: #3a4150;
  color: var(--accent);
}

.file-meta {
  flex: 1 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.12s ease;
}

/* Reveal actions on hover; keep visible on focus and touch devices */
.file-row:hover .row-actions,
.file-row:focus-within .row-actions {
  opacity: 1;
}

@media (hover: none) {
  .row-actions {
    opacity: 1;
  }
}

/* Square, evenly-aligned icon buttons */
.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.icon-btn:hover {
  background: var(--border);
  color: var(--text);
}

.icon-btn.danger:hover {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.icon-btn .copied {
  font-size: 11px;
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 14px;
}

.copied {
  color: var(--ok);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.66);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  animation: fade 0.12s ease;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: pop 0.14s ease;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.modal-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.modal-message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.modal-ok {
  width: 100%;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.section-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

