/* =====================================================
   FILEDROP – DARK THEME SAFE
   ===================================================== */

.filedrop {
    padding-bottom: 10px;
}

/* Dropzone */
.filedrop .dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
}

.filedrop .dropzone a {
    color: #60a5fa;
    font-weight: 500;
}

/* Uploaded files container */
.filedrop .files:not(:empty) {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px 8px 0 0;
    padding: 6px;
    background: #0f172a;
}

.filedrop .files:not(:empty) + .dropzone {
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Single file row */
.filedrop .files .file {
    display: block;
    padding: 6px 10px 6px 22px;
    margin: 2px 0;
    border-radius: 6px;
    height: 26px;
    color: #e5e7eb;
}

.rtl .filedrop .files .file {
    padding-left: 10px;
    padding-right: 22px;
}

.filedrop .files .file:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* File meta */
.filedrop .files .file .filesize,
.filedrop .files .file .upload-rate {
    margin: 0 1em;
    color: #9ca3af;
}

.filedrop .files .file > span {
    padding: 4px 0 0 0;
    display: block;
}

.filedrop .files .file .trash,
.filedrop .cancel {
    cursor: pointer;
    color: #f87171;
}

.filedrop .files .file .trash:hover {
    color: #ef4444;
}

/* Preview thumbnail */
.filedrop .preview {
    max-width: 100px;
    max-height: 25px;
    display: inline-block;
    float: left;
    padding-right: 10px;
}

.rtl .filedrop .preview {
    padding-right: initial;
    padding-left: 10px;
    float: right;
}

/* Redactor integration */
.-redactor-container + .filedrop .dropzone,
.-redactor-container .filedrop .dropzone,
.-redactor-container .filedrop .files {
    border-top-width: 1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Tooltip preview */
.tooltip-preview,
.tooltip-preview img {
    max-width: 300px;
    max-height: 300px;
    z-index: 11;
}

/* =====================================================
   BOOTSTRAP 3.x PROGRESS BAR – DARK MODE
   ===================================================== */

/* Animations */
@keyframes progress-bar-stripes {
  from { background-position: 40px 0; }
  to   { background-position: 0 0; }
}

/* Progress container */
.progress {
  height: 10px;
  overflow: hidden;
  background-color: #020617;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

/* Base bar */
.progress-bar {
  float: left;
  width: 0;
  height: 100%;
  font-size: 12px;
  line-height: 10px;
  color: #ffffff;
  text-align: center;
  background-color: #2563eb;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
}

.rtl .progress-bar {
  float: right;
}

/* Transition */
.progress-bar:not(.active) {
  transition: width .6s ease;
}

/* Stripes */
.progress-striped .progress-bar,
.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,.15) 50%,
    rgba(255,255,255,.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
}

/* Active animation */
.progress.active .progress-bar,
.progress-bar.active {
  animation: progress-bar-stripes 2s linear infinite;
}

/* Small values */
.progress-bar[aria-valuenow="1"],
.progress-bar[aria-valuenow="2"] {
  min-width: 30px;
}

.progress-bar[aria-valuenow="0"] {
  min-width: 30px;
  color: #9ca3af;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

/* States */
.progress-bar-success { background-color: #22c55e; }
.progress-bar-info    { background-color: #0ea5e9; }
.progress-bar-warning { background-color: #f59e0b; }
.progress-bar-danger  { background-color: #ef4444; }