/* Modal Content */

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

#modal img.fullScreen {
    max-height: 90vh;
    max-width: 90vw;
}

p#preview {
    position: absolute;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #FFFFFFD0;
    padding: 0.3rem;
    box-shadow: var(--shadow);
    display: none;
}

#preview img.previewPic {
    max-height: 600px;
    max-width: 600px;
    min-height: 200px;
    min-width: 200px;
    border-radius: 10px;
}

#preview p {
    margin: 3px 15px;
    padding: 3px;
    background-color: #EEE;
}

#modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding: 50px 0; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 90%; /* Full height */
  text-align: center;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#preview img.microThumbPic {
  max-height: 40px;
}

/* Tooltip for fileName hover (moved from inline styles) */
#fileTooltip {
  position: absolute;
  display: none;
  background: var(--second-light-color);
  padding: 8px 10px;
  border: #ffffff 2px solid;
  border-radius: 16px;
  white-space: normal;
  z-index: 9999;
  pointer-events: none;
  box-shadow: var(--shadow);
}

#fileTooltip.visible {
  display: block;
}

#fileTooltip .tooltip-title {
  margin-bottom: 6px;
  font-weight: 800;
}

#fileTooltip .tooltip-body {
  color: #000000;
}

#fileTooltip .tooltip-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
}

#fileTooltip .tooltip-key {
  min-width: 90px;
}

#fileTooltip .tooltip-val.number {
  font-weight: 700;
  font-size: 1.3rem;
}

#fileTooltip .tooltip-val.muted {
  color: #9a9a9a;
}

#fileTooltip .tooltip-row.tooltip-order {
  border-radius: 4px;
  padding: 6px;
}