:root {
  --bg-color: #0d1117;
  --panel-bg: rgba(22, 27, 34, 0.7);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --accent: #1f6feb;
  --accent-hover: #1158c7;
  --success: #2ea043;
  --blob-1: #58a6ff;
  --blob-2: #8a2be2;
  --font-family: 'Inter', sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1rem 0;
}

/* Background Blobs */
.blob-c {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.blob1 {
  width: 500px;
  height: 500px;
  background: var(--blob-1);
  top: -50px;
  left: -100px;
  animation: float 10s ease-in-out infinite;
}

.blob2 {
  width: 400px;
  height: 400px;
  background: var(--blob-2);
  bottom: -50px;
  right: -100px;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

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

.container {
  max-width: 900px;
  width: 90%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin: 1rem auto;
  /* Minimizing top space */
  position: relative;
  z-index: 10;
  height: auto;
  min-height: min-content;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

header h1 {
  font-size: 2rem;
  /* Slightly smaller h1 */
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  /* Slightly smaller subhead */
}

.panels {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-shrink: 0;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 430px;
  height: auto;
  overflow: visible;
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.panel-header {
  margin-bottom: 1.5rem;
}

.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.file-upload-wrapper {
  position: relative;
  height: 160px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.file-upload-wrapper:hover {
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.05);
}

/* Drag-over active state */
.file-upload-wrapper.drag-over {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(31, 111, 235, 0.12);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2), inset 0 0 30px rgba(31, 111, 235, 0.08);
  transform: scale(1.02);
  animation: drag-pulse 1s ease-in-out infinite;
}

/* Drop success flash */
.file-upload-wrapper.drop-success {
  border-color: var(--success);
  border-style: solid;
  background: rgba(46, 160, 67, 0.1);
  box-shadow: 0 0 0 4px rgba(46, 160, 67, 0.2);
  animation: none;
  transform: scale(1);
}

/* Drop rejected flash */
.file-upload-wrapper.drop-rejected {
  border-color: #ff4d4f;
  border-style: solid;
  background: rgba(255, 77, 79, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.2);
  animation: none;
  transform: scale(1);
}

@keyframes drag-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2), inset 0 0 30px rgba(31, 111, 235, 0.08);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(31, 111, 235, 0.1), inset 0 0 40px rgba(31, 111, 235, 0.14);
  }
}

/* Drag-over icon & label color shift */
.file-upload-wrapper.drag-over .file-upload-ui {
  color: var(--accent);
}

.file-upload-wrapper.drag-over .file-upload-ui svg {
  stroke: var(--accent);
  transform: translateY(-6px) scale(1.15);
  transition: transform 0.25s ease, stroke 0.25s ease;
}

/* Drop-hint overlay text */
.drop-hint {
  display: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
  user-select: none;
}

.file-upload-wrapper.drag-over .drop-hint {
  display: block;
}

.file-upload-wrapper.drag-over .file-label,
.file-upload-wrapper.drag-over .file-upload-ui svg {
  opacity: 0.4;
}

.file-upload-wrapper.drag-over .drop-hint {
  position: absolute;
  opacity: 1;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 1.5rem;
}

.file-label {
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  color: var(--text-secondary);
}

.file-name {
  display: none;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
  text-align: center;
  padding: 0 10px;
  font-size: 0.95rem;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(31, 111, 235, 0.3);
}

.primary-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 111, 235, 0.4);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.secondary-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-btn:hover {
  background: rgba(31, 111, 235, 0.1);
  transform: translateY(-2px);
}

.receive-panel .secondary-btn {
  color: #c084fc;
  border-color: #8a2be2;
}

.receive-panel .secondary-btn:hover {
  background: rgba(138, 43, 226, 0.1);
}

.receive-panel .primary-btn {
  background: #8a2be2;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.receive-panel .primary-btn:hover {
  background: #7b1fa2;
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.receive-panel .primary-btn:disabled {
  background: var(--text-secondary);
  box-shadow: none;
}

.input-wrapper {
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.join-input {
  width: 100%;
  max-width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  transition: all 0.3s;
  font-family: var(--font-family);
  box-sizing: border-box;
}

.join-input:focus {
  outline: none;
  border-color: #8a2be2;
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.join-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.code-container {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(31, 111, 235, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(31, 111, 235, 0.2);
}

.code-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.code-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(31, 111, 235, 0.5);
}

.qr-code {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  width: fit-content;
}

.status-msg {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Expiry countdown timer */
.expiry-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}

.expiry-countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: inherit;
}

/* Urgent state — last 60 seconds pulsing red */
.expiry-timer.expiry-urgent {
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.4);
  background: rgba(255, 77, 79, 0.08);
  animation: expiry-pulse 1s ease-in-out infinite;
}

@keyframes expiry-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Refresh Code button — appears in place of the expired timer */
.refresh-code-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px auto 0;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 149, 0, 0.5);
  background: rgba(255, 149, 0, 0.1);
  color: #ff9500;
  font-family: var(--font-family);
  transition: all 0.25s ease;
}

.refresh-code-btn:hover {
  background: rgba(255, 149, 0, 0.2);
  border-color: rgba(255, 149, 0, 0.8);
  box-shadow: 0 0 12px rgba(255, 149, 0, 0.25);
}

.refresh-code-btn svg {
  transition: transform 0.4s ease;
}

.refresh-code-btn:hover svg {
  transform: rotate(180deg);
}

/* Incoming File Info & Progress */
.incoming-file-info {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(138, 43, 226, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  flex-shrink: 0;
}

.file-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 15px;
}

.incoming-file-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.incoming-file-size {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #8a2be2, #c084fc);
  transition: width 0.2s ease-out;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.download-container {
  margin-top: 1.5rem;
  flex-shrink: 0;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--success);
  color: #fff;
  text-decoration: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(46, 160, 67, 0.3);
}

.download-btn:hover {
  background: #238636;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4);
}

.divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 1rem;
}

.divider::before,
.divider::after {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: var(--panel-border);
  margin: 1rem 0;
}

@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .container {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    margin-top: 0;
    margin-bottom: 0;
  }

  header {
    margin-bottom: 1.5rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .panels {
    gap: 1rem;
    flex-direction: column;
  }

  .panel {
    padding: 1.5rem;
    min-height: auto;
  }

  .panel-header {
    margin-bottom: 1rem;
  }

  .file-upload-wrapper {
    height: 120px;
    margin-bottom: 1rem;
  }

  .input-wrapper {
    margin-bottom: 1rem;
  }

  .primary-btn {
    padding: 14px;
    font-size: 1rem;
  }

  .divider {
    flex-direction: row;
    margin: 0.75rem 0;
    padding: 0;
  }

  .divider::before,
  .divider::after {
    width: 100%;
    height: 1px;
    margin: 0 1rem;
  }
}

/* ── Mode Toggle ─────────────────────────────────────────────────────────── */
.mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.25s ease;
}

.mode-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.mode-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(31, 111, 235, 0.12);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

#modeBroadcast.active {
  border-color: #a78bfa;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.mode-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  min-height: 1.1em;
  transition: color 0.3s;
}

/* ── Broadcast badge label ───────────────────────────────────────────────── */
.badge-broadcast {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

/* ── Broadcast Start button (purple) ────────────────────────────────────── */
.broadcast-start-btn {
  background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.broadcast-start-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6) !important;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55) !important;
}

/* ── Live Roster ─────────────────────────────────────────────────────────── */
.roster-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 10px;
  text-align: left;
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 8px;
}

.roster-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 110px;
  overflow-y: auto;
}

.roster-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  animation: roster-in 0.3s ease;
}

@keyframes roster-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.roster-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ── Receiver Name Input ─────────────────────────────────────────────────── */
.name-input {
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
  border-color: rgba(167, 139, 250, 0.25) !important;
}

.name-input:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18) !important;
}

/* ── Waiting Room ────────────────────────────────────────────────────────── */
.waiting-room {
  margin-top: 20px;
  padding: 24px 20px;
  background: rgba(167, 139, 250, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  text-align: center;
  animation: fade-in 0.4s ease;
  flex-shrink: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.waiting-animation {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
}

.waiting-animation span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a78bfa;
  display: inline-block;
  animation: bounce-dot 1.4s ease-in-out infinite both;
}

.waiting-animation span:nth-child(1) {
  animation-delay: -0.32s;
}

.waiting-animation span:nth-child(2) {
  animation-delay: -0.16s;
}

.waiting-animation span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes bounce-dot {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.waiting-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Message Input ────────────────────────────────────────────────────────── */
.message-input-wrapper {
  margin-bottom: 1.5rem;
  width: 100%;
  animation: slide-up 0.4s ease;
}

.message-textarea {
  width: 100%;
  height: 160px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  resize: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.message-textarea:focus {
  outline: none;
  border-color: var(--accent);
  border-style: solid;
  background: rgba(31, 111, 235, 0.05);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* ── Text Message Display ────────────────────────────────────────────────── */
.text-message-container {
  margin-top: 1.5rem;
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 12px;
  overflow: hidden;
  animation: fade-in 0.5s ease;
}

.text-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(138, 43, 226, 0.15);
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: #c084fc;
}

.text-message-content {
  padding: 1rem;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 250px;
  overflow-y: auto;
}

.copy-msg-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-msg-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.copy-msg-btn:active {
  transform: translateY(0);
}

/* ── Selected Files List ─────────────────────────────────────────────────── */
.file-list-container {
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.file-list-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 140px;
  overflow-y: auto;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

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

.file-list .f-name {
  color: #c9d1d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 15px;
}

.file-list .f-size {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── E2EE Badge ─────────────────────────────────────────────────────────── */
.e2ee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.e2ee-badge svg {
  color: #10b981;
}

/* Custom scrollbar for list */
.file-list::-webkit-scrollbar {
  width: 6px;
}
.file-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.file-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.file-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}