.force-hidden {
  display: none !important;
}

.dipsaus-compound-input-foot-ctrl button{
  margin: auto;
  width: 30px;
  height: 30px;
  padding: 0;
  text-align: center;
}

.dipsaus-fancy-file-input {
  margin-bottom: 15px;
}

.dipsaus-fancy-file-input .shiny-input-container {
  width: 100%;
  position: relative;
  margin-bottom: 0;
}

.dipsaus-fancy-file-input .shiny-input-container > .input-group {
  width: 100%;
  min-width: 200px;
  max-width: 100%;
  min-height: 170px;
  position: relative;
}

.dipsaus-fancy-file-input-m .shiny-input-container > .input-group {
  min-height: 300px;
}

.dipsaus-fancy-file-input-l .shiny-input-container > .input-group {
  min-height: 450px;
}

.dipsaus-fancy-file-input-xl .shiny-input-container > .input-group {
  min-height: 600px;
}

.dipsaus-fancy-file-input .shiny-input-container > .input-group > label.input-group-btn {
  position: absolute;
  display: block;
  top: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  transform: translate(50%, calc(50% + 8px));
  width: auto;
  z-index: 4;
}

.dipsaus-fancy-file-input .shiny-input-container > .input-group > label.input-group-btn > .btn-file {
  margin: 0;
  border-radius: 5px !important;
}

.dipsaus-fancy-file-input .shiny-input-container > .input-group > input.form-control {
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 2;
  text-align: center;
  word-wrap: break-word;
  white-space: break-spaces;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 5px;
  border: 1px dashed;
  padding: 6px 12px 26px 12px;
}

.dipsaus-fancy-file-input .shiny-input-container > .progress.shiny-file-input-progress
{
  position: absolute;
  min-height: 2px;
  width: 100%;
  margin: 0;
  transform: translate(0, calc(-100% - 1px));
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  z-index: 5;
  width: 100%;
  min-width: 200px;
  max-width: 100%;
}

.dipsaus-fancy-file-input::after {
  content: attr(dipsaus-after-content);
  bottom: 5px;
  left: 10px;
  visibility: unset;
  color: #999;
  font-size: x-small;
}

/* Directory Input Styles */
.dipsaus-fancy-directory-input {
  margin-bottom: 15px;
}

.dipsaus-fancy-directory-input .shiny-input-container {
  width: 100%;
  position: relative;
  margin-bottom: 0;
}

.dipsaus-fancy-directory-input .shiny-input-container > .input-group {
  width: 100%;
  min-width: 200px;
  max-width: 100%;
  min-height: 170px;
  position: relative;
}

.dipsaus-fancy-directory-input-m .shiny-input-container > .input-group {
  min-height: 300px;
}

.dipsaus-fancy-directory-input-l .shiny-input-container > .input-group {
  min-height: 450px;
}

.dipsaus-fancy-directory-input-xl .shiny-input-container > .input-group {
  min-height: 600px;
}

.dipsaus-fancy-directory-input .shiny-input-container > .input-group > label.input-group-btn {
  position: absolute;
  display: block;
  top: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  transform: translate(50%, calc(50% + 8px));
  width: auto;
  z-index: 4;
}

.dipsaus-fancy-directory-input .shiny-input-container > .input-group > label.input-group-btn > .btn-file {
  margin: 0;
  border-radius: 5px !important;
}

.dipsaus-fancy-directory-input .shiny-input-container > .input-group > input.form-control {
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 2;
  text-align: center;
  word-wrap: break-word;
  white-space: break-spaces;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 5px;
  border: 1px dashed #6c757d;
  padding: 6px 12px 26px 12px;
  background-color: #f8f9fa;
}

.dipsaus-fancy-directory-input .shiny-input-container > .input-group > .progress.shiny-file-input-progress
{
  position: absolute;
  bottom: 0;
  left: 0;
  height: 24px;
  min-height: 24px;
  width: 100%;
  margin: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  z-index: 10;
  min-width: 200px;
  max-width: 100%;
  background-color: #f5f5f5;
  visibility: visible !important;
}

/* Add folder icon indicator */
.dipsaus-fancy-directory-input .shiny-input-container > .input-group::before {
  content: "📁";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* Dragging state */
.dipsaus-fancy-directory-input.dragging .shiny-input-container > .input-group {
  border-color: #337ab7;
  border-width: 2px;
  background-color: #f0f8ff;
}

.dipsaus-fancy-directory-input.dragging .shiny-input-container > .input-group::before {
  opacity: 0.6;
  font-size: 64px;
}

/* After-content text */
.dipsaus-directory-after-content {
  margin-top: 8px;
  padding: 0;
  color: #999;
  font-size: 11px;
  text-align: left;
}

/* Auto-cleanup checkbox options */
.dipsaus-directory-options {
  margin-top: 4px;
  padding: 0 10px;
  font-size: 13px;
}

.dipsaus-directory-options label {
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.dipsaus-auto-cleanup-checkbox {
  cursor: pointer;
  margin: 0;
}

/* Progress bar text */
.dipsaus-fancy-directory-input .progress-bar {
  line-height: 24px;
  font-size: 12px;
  text-align: center;
  width: 100%;
  padding: 0 8px;
}