:root {
    --bg: #0f172a;
    --card: #1e293b;
    --accent: #38bdf8;
    --text: #f1f5f9;
    --border: #334155;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    margin: 0; padding: 0;
}


/*
body {
  font-family: "Trebuchet MS", san-serif;
  font-size: 9pt;
  background-color: #c7e9ee;
  background-position: center bottom, center bottom, 0 0, 0 0;
  background-repeat: no-repeat, repeat-x, repeat-x, repeat;
  background-attachment: fixed;
  margin: 0px;
  padding: 0px;
  height: 100%;
  width: 100%;
}*/
#dropDownContainer {
  text-align: center;
  z-index: 20000;
  width: 100%;
  position: absolute;
  height: max-content;
}
#dropDown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  background: #081e30;
  width: 100vw;
  -moz-border-radius: 0px 0px 5px 5px;
  -khtml-border-bottom-left-radius: 5px;
  -khtml-border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
  text-shadow: -1px 1px 0px #000;
  color: #d7f2fe;
}
#dropDownClose {
  margin: 4px auto;
  padding: 7px 0px 6px 0px;
  min-width: 100%;
}
#pageHeader {
  width: 92vw;
  height: 40px;
  padding-top: 15px;
  margin: auto;
  top: 0px;
}
.dropDownActivate {
  cursor: pointer;
}
.sprite {
  background: url(../images/sprite.png);
  border: 0;
}
.spriteBg {
  background: url(../images/sprite.png) #1d5c7f;
  border: 0;
}

#pageContainer,
#pageContainerConverted {
  width: 92vw;
  margin: auto;
  max-width: 981px;
}
#wrapper {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0em auto -175px;
}
#wrapperPush,
#footer {
  height: 175px;
}
#inputArea,
#outputArea {
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  background: #fff;
  padding: 5px;
}
#inputAreaElement,
#outputAreaElement {
  width: 100%;
  border: 0;
  padding: 0;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 90%;
  min-height: 100px;
  margin-bottom: 5px;
  resize: none;
}
#inputAreaElement {
  height: 108px;
}
#outputAreaElement {
  height: 189px;
}
.inputAreaElementBg {
  background: url(../images/inputAreaWatermark.gif) no-repeat center;
}

.inputAreaElementUpload,
.outputAreaElementWait {
  background: url(../images/loading.gif) no-repeat center;
}





.addCustomFormat {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    color: #f1f5f9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.format-header strong {
    font-size: 1.25rem;
    color: #38bdf8;
    display: block;
    margin-bottom: 5px;
}

.format-header p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.tags-container {
    display: flex;
    gap: 15px;
    background: #0f172a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.tag-group { flex: 1; }

.tag {
    display: block;
    margin-bottom: 5px;
}

.tag b {
    color: #4ade80;
    font-family: monospace;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    margin-right: 5px;
}

.input-field {
    margin-bottom: 15px;
}

.input-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
}

.input-field input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
}

.format-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-add {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cancel {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-add:hover { background: #7dd3fc; }
.btn-cancel:hover { background: #334155; color: white; }








#dropDownLeft,
#dropDownCenter,
#dropDownRight {
  text-align: center;
  overflow: hidden;
  padding: 1em 2em;
  width: 33%;
  min-width: 300px;
  flex-shrink: 1;
  flex-grow: 1;
  box-sizing: border-box;
  border-bottom: 1px solid #0d2c45;
}

.responsiveGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: auto;
  column-gap: 10px;
  row-gap: 10px;
  margin: 10px 0px;
}

#inputBlock {
  grid-area: 1 / 1 / span 1 / span 1;
  height: calc(max(max-content, 100%));
}
#outputBlock {
  grid-area: 1 / 2 / span 1 / span 1;
  height: calc(max(max-content, 100%));
}
#optionsBlock {
  grid-area: 1 / 3 / span 2 / span 1;
  height: 100%;
}
#convertButton {
    background: var(--accent);
    color: #0f172a;
    width: 150px; height: 150px;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    border: 8px solid var(--main-bg);
}

.convertSprite {
  display: flex;
  align-items: center;
}

#convertMoreButton {
  margin: 10px 0px;
  width: 100%;
  float: left;
  cursor: pointer;
}
#inputBlock,
#outputBlock,
#optionsBlock,
#convertButton,
#convertMoreButton {
  text-shadow: -1px 1px 0px #000;
  color: #d7f2fe;
  text-align: center;
  overflow: hidden;
  padding: 10px 0em 5px 0em;
  background-position: 0px -322px;
  background-repeat: repeat-x;
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  position: relative;
  z-index: 19000;
}
#convertButton:hover {
  background-position: 0px -336px;
}
#convertMoreButton:hover {
  background-position: 0px -336px;
}

#optionsBlockLeft {
  float: left;
  width: 50%;
}
#optionsBlockRight {
  float: right;
  width: 50%;
}
#inputSprite {
  height: 29px;
  width: 59px;
  margin: auto;
  margin-bottom: 1px;
  background-position: 0px -45px;
}
#outputSprite {
  height: 30px;
  width: 82px;
  margin: auto;
  background-position: 0px -76px;
}
#optionsSprite {
  height: 30px;
  width: 93px;
  margin: auto;
  background-position: 0px -109px;
}
#convertButtonSprite {
  height: 41px;
  width: 118px;
  margin: auto;
  background-position: 0px -138px;
}
#convertMoreButtonSprite {
  height: 41px;
  width: 348px;
  margin: auto;
  margin-top: 3px;
  background-position: 0px -248px;
}
#footer {
  width: 100%;
  background: url(../images/sanAndreasFooter.png);
  min-width: 981px;
  background-repeat: repeat-x;
}
.textAreaResize {
  background: #eee;
  border: #ddd solid 1px;
  cursor: s-resize;
  height: 9px;
  -moz-border-radius: 3px;
  -khtml-border-radius: 3px;
  border-radius: 3px;
}
textarea {
    width: 100%; height: 400px;
    background: #0b1120; border: 1px solid var(--border);
    border-radius: 8px; color: #4ade80; font-family: monospace;
    padding: 15px; box-sizing: border-box;
}
.textAreaResizeHandle {
  background-position: 0px -211px;
  margin: auto;
  width: 27px;
  height: 9px;
}
.resizableTextarea textarea {
  display: block;
  margin-bottom: 0px;
  width: 95%;
}
.addCustomFormat {
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  text-align: center;
  z-index: 40000;
  -moz-box-shadow: 0px 0px 100px #000;
  -webkit-box-shadow: 0px 0px 100px #000;
  box-shadow: 0px 0px 100px #000;
  display: none;
  background: #fff;
  position: absolute;
}
#zoom {
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  text-align: center;
  z-index: 20000;
  padding: 5px;
  background: #fff;
  -moz-box-shadow: 0px 0px 100px #000;
  -webkit-box-shadow: 0px 0px 100px #000;
  box-shadow: 0px 0px 100px #000;
}
#zoomContent {
  height: 100%;
}
#zoomClose {
  -moz-border-radius: 3px;
  -khtml-border-radius: 3px;
  border-radius: 3px;
  height: 30px;
  padding-top: 7px;
  background-position: 0px -322px;
  background-repeat: repeat-x;
  cursor: pointer;
  position: relative;
  bottom: 37px;
}
#zoomOverlay {
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  float: right;
}
#formatOverlay {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  z-index: 25000;
  display: none;
  float: right;
}
.deleteModeHelp {
  height: 20px;
}
ul {
  list-style-type: none;
}
li {
  opacity: 0.6;
  list-style-type: none;
  margin-bottom: 5px;
  width: 100%;
  color: #000;
}
.li:hover {
  opacity: 1;
  background: #ddd;
}
.liSelected {
  color: #fff;
  background: #1d5c7f;
  text-shadow: -1px 1px 0px #000;
  opacity: 1;
  list-style-type: none;
  margin-bottom: 5px;
  display: block;
  width: 100%;
}
input {
  border: #ddd thin solid;
  -moz-border-radius: 8px;
  -khtml-border-radius: 8px;
  border-radius: 8px;
  height: 30px;
  font-size: 15px;
}
input:focus {
  border: #1d5c7f thin solid;
}
td {
  width: 25%;
  text-align: center;
  vertical-align: top;
}
table {
  width: 100%;
  border: none;
}
.addObjectFormats,
.addVehicleFormats {
  overflow: auto;
  height: 383px;
  text-align: left;
  font-size: 13px;
  width: 100%;
  cursor: pointer;
  z-index: 40000;
}
.customParamTable {
  font-size: x-small;
  width: 500px;
  margin: auto;
  border: #ddd thin solid;
  -moz-border-radius: 8px;
  -khtml-border-radius: 8px;
  border-radius: 8px;
}
#uploadLink,
#selectAllText {
  position: relative;
  padding-right: 5px;
  margin-left: auto;
  text-align: right;
  width: 250px;
  cursor: pointer;
  text-shadow: -1px 1px 0px #000;
  color: #fff;
}
#selectAllText {
  z-index: 1000;
}
a {
  color: #d7f2fe;
  text-decoration: none;
}
p {
  color: #fff;
  margin: 0px;
  padding: 0px;
  display: inline;
}
#dropDownContainer a {
  text-decoration: underline;
}
.largeText {
  font-size: large;
}
.medText {
  font-size: 16px;
  color: #fff;
}
#logo {
  height: 43px;
  width: 260px;
  margin: auto;
  background-position: 20px 0px;
}
.close {
  height: 25px;
  width: 70px;
  margin: auto;
  background-position: 0px -224px;
}
.blackText {
  color: #000;
}
#reflection,
#reflectionMore {
  margin-top: 64px;
  opacity: 0.5;
  background: url(../images/reflection.png);
  width: 100%;
  height: 33px;
}
#reflectionMore {
  background-position: 0px -107px;
}
img {
  cursor: pointer;
  border: none;
}
#noscript,
#ie6,
#loading {
  background: url(../images/backgroundTop.png) #b6f2fa;
  background-repeat: repeat-x;
  text-align: center;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 30000;
  text-shadow: -1px 1px 0px #000;
  color: #fff;
  font-size: x-large;
}
#pageContainerConverted {
  display: none;
  position: sticky;
  top: 9vh;
}
#qualityControlWarning {
  background: #ff9;
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  padding: 5px;
  margin-top: 5px;
  text-align: center;
}
#clItem {
  padding: 5px 0px;
  margin-bottom: 5px;
}
#clItem:nth-child(odd) {
  background: #eee;
  border-top: 1px #ddd solid;
  border-bottom: 1px #ddd solid;
}
#clItem strong {
  font-size: 13px;
}
#vehicleColourTooltip {
  width: 60px;
  background: #ddd;
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  display: none;
  padding: 3px;
  position: absolute;
  top: 5px;
  left: 5px;
}

@media only screen and (max-width: 900px) {
  .responsiveGrid {
    grid-template-columns: 1fr 1fr;
  }

  #inputBlock {
    grid-area: 1 / 1 / span 1 / span 1;
  }
  #outputBlock {
    grid-area: 1 / 2 / span 1 / span 1;
  }
  #optionsBlock {
    grid-area: 2 / 1 / span 1 / span 2;
    height: auto;
  }
  #convertButton {
    grid-area: 3 / 1 / span 1 / span 2;
  }
}

@media only screen and (max-width: 520px) {
  .responsiveGrid {
    grid-template-columns: 1fr;
  }

  #inputBlock {
    grid-area: 1 / 1 / span 1 / span 1;
  }
  #outputBlock {
    grid-area: 2 / 1 / span 1 / span 1;
  }
  #optionsBlock {
    grid-area: 3 / 1 / span 1 / span 1;
    height: auto;
  }
  #convertButton {
    grid-area: 4 / 1 / span 1 / span 1;
  }
}







/* 555555555555555555555555555555*/

/* Kontener listy z przewijaniem, jeśli formatów jest dużo */
.scrollable-list {
    max-height: 350px;
    overflow-y: auto;
    background: #0f172a; /* Ciemne tło listy */
    border-radius: 8px;
    margin: 15px 0;
}

.scrollable-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Stylowanie elementów generowanych przez JS */
.scrollable-list .li {
    padding: 12px 20px;
    color: #e2e8f0;
    border-bottom: 1px solid #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.scrollable-list .li:hover {
    background: #38bdf8; /* Błękitny kolor przy najechaniu */
    color: #0f172a;
    padding-left: 25px; /* Delikatne przesunięcie */
}

/* Ostatni element (zazwyczaj "Don't convert") */
.scrollable-list .li[style*="font-weight:bold"] {
    color: #f87171 !important; /* Czerwony kolor dla opcji wyłączenia */
    border-top: 2px solid #1e293b;
}