/* ================================
   OVERLAY
================================ */

.tbfile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: tbfadein 0.15s ease-out;
}

@keyframes tbfadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================
   PANEL
================================ */

.tbfile-panel {
  background: #1e1e1e;
  color: #fff;
  width: 340px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: tbpanelpop 0.18s ease-out;
}

@keyframes tbpanelpop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tbfile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
}

.tbfile-header strong {
  font-size: 15px;
}

.tbfile-close {
  background: none;
  border: none;
  color: #bbb;
  font-size: 18px;
  cursor: pointer;
  transition: 0.15s;
}

.tbfile-close:hover {
  color: #fff;
}

.tbfile-body {
  padding: 16px;
  font-size: 14px;
}

/* ================================
   BUTTONS
================================ */

.tbfile-overlay button,
.tbfile-topnotif button {
  background: #3a3a3a;
  border: 1px solid #555;
  padding: 6px 12px;
  border-radius: 6px;
  color: #eee;
  cursor: pointer;
  transition: 0.15s;
  font-size: 14px;
}

.tbfile-overlay button:hover,
.tbfile-topnotif button:hover {
  background: #4a4a4a;
  border-color: #666;
}

.tbfile-overlay button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ================================
   TOP NOTIFICATION
================================ */

.tbfile-topnotif {
  position: fixed;
  top: 18px;
  right: 18px;
  background: #1f1f1f;
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 6000;
  width: 260px;
  animation: tbnotif 0.25s ease-out;
}

@keyframes tbnotif {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tbfile-topnotif div {
  margin-bottom: 8px;
}

/* ================================
   PROGRESS BAR
================================ */

.tb-progress-wrap {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.tb-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #6bdc6b);
  transition: width 0.25s ease-out;
}

/* ================================
   STATUS TEXT
================================ */

.tb-status-text {
  margin-top: 10px;
  font-size: 13px;
  color: #ccc;
}

.tb-status {
  font-weight: bold;
  color: #ddd;
}

/* ================================
   DOWNLOAD LINK
================================ */

.tbfile-body a.tb-download {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: #2f6fed;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.15s;
}

.tbfile-body a.tb-download:hover {
  background: #3f7fff;
}

/* ================================
   SMALL CLOSE BUTTON (refusé)
================================ */

.tb-close-small {
  margin-top: 10px;
  background: #444;
  border: 1px solid #666;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.tb-close-small:hover {
  background: #555;
}

/* ================================
   INPUT FILE
================================ */

#tb-file {
  width: 100%;
  margin-bottom: 10px;
}
