:root
{
  color-scheme: light dark;
  --bg-color: #cccccc;
  --mh-color: #9e9e9e;
  --bb-color: #6e6e6e;
  --cd-color: #ffffff;
  --dz-color: #fafafa;
  --br-color: blue;
  --primary-color: #4f46e5;
  --border-color: #cbd5e1;
  --success-color: #22c55e;
  --jb-color: #ffffff;
  --text-color: #000000;
  --accent-color: #0066cc;
}

@media (prefers-color-scheme: dark)
{
  :root
  {
    --bg-color: #585858;
    --mh-color: #3e3e3e;
    --bb-color: #4e4e4e;
    --cd-color: #383838;
    --dz-color: #7a7a7a;
    --br-color: #add8e6;
    --primary-color: #4f46e5;
    --border-color: #cbd5e1;
    --success-color: #22c55e;
    --jb-color: #222222;
    --text-color: #ffffff;
    --accent-color: #3399ff;
  }
}

body
{
  background-color:var(--bg-color);
  color:var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-select select
{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  margin:5px;
  padding:5px;
}

dialog
{
  border: none;
  border-radius: 8px;
  padding: 0; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow: hidden;
  background-color:var(--bg-color);
}

.dialog-content
{
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
}

dialog::backdrop
{
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.drop-zone
{
  max-width: 350px;
  height: 100px;
  padding: 25px;
  width: 300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background-color: var(--dz-color);
  transition: all 0.2s ease-in-out;
}

.drop-zone__icon
{
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.drop-zone__browse
{
  color: var(--br-color);
  font-weight: 600;
  text-decoration: underline;
}

.drop-zone__prompt
{
  color: var(--text-color);
}

.drop-zone p
{
  margin: 8px 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

.drop-zone small
{
  color: #94a3b8;
}

.file-list
{
  margin: auto;
  max-width: 450px;
  margin-top: 1rem;
}

.file-item
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background:var(--jb-color);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.w3-wrap-text
{
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.w3-round-row table
{
  border-collapse: separate;
  border-spacing: 0 8px;
}

.w3-round-row td:first-child, 
.w3-round-row th:first-child
{
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.w3-round-row td:last-child, 
.w3-round-row th:last-child
{
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.image-button
{
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.spaced-span
{
  display: inline-block;
  margin-right: 15px;
  padding: 5px 5px;
}

#bottomBar
{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bb-color);
  color: var(--text-color);
  overflow: hidden;
  transition: height 0.3s ease;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

#bottomBar.expanded
{
  height: 300px;
}

#barHeader
{
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--mh-color);
  color: var(--text-color);
  user-select: none;
}

#barContent
{
  padding: 15px;
  font-size: 14px;
  line-height: 1.5;
}
