body {margin: 0 auto;font-size:medium;line-height:1.3;background-color:#000000;color:#ffffff;}
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: 100vh;
  box-sizing: border-box;
  touch-action: pan-y;
  -webkit-touch-callout: none; 
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;    
  -webkit-tap-highlight-color: transparent;
}
body,input,select,textarea{font-family: 'Roboto', sans-serif;}
h1,h2,h3,h4,form,div,span,input,select,textarea,p{margin: 0;padding:0;}
h1,h2 {font-size: medium;color:#ff6600;padding:2px 0;}
h2 {font-weight:normal;}
a:link,a:active,a:visited {text-decoration:none;color:#dbbb63;}
a:hover {text-decoration:none;color:#dbbb63;}
ul{padding: 5px 0 5px 20px;margin: 0;}
input,select,textarea{border: 1px solid gray;color:#000000; background-color:#d8d8d8;box-sizing: border-box;}
input, textarea {width:90%;}
input {
  width: 100%;
  height: 20px;
  padding: 15px;
  font-size: 18px;
  border: 2px solid #5a666e;
  box-sizing: border-box;
  background-color: #212529;
  color: #f1f1f1;
  box-sizing: border-box;
  resize: vertical;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
}
div img,h1 img,h2 img,a img,span img,img {vertical-align:middle;}
div {margin: 0px 0px 0px 0px;}
ul,li {list-style:none; margin:0; padding:0;}
em{font-style:normal;}
hr{padding:0;margin:6px 0;height:0;color:#0B0B61;background-color:#0B0B61;border-top:none;border-bottom:#0B0B61 solid 1px;box-sizing: border-box;}
table {border-collapse:collapse;}
table.bordered td {border: 1px solid #4c4c4c;box-sizing: border-box;}
.body {
	margin: 0px 0px 0px 0px;background:rgba(0,0,0,0.7);
	background-color: #2e3436;
	border-color: #f7f7f7;
  box-sizing: border-box;
	color: #f7f7f7;
	padding: 15px 5px 5px 5px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.body {
  flex-grow: 1;
}
.body, .navbar, .navbarDown {
  box-sizing: border-box;
}
.small{font-size:80%;}
.notify {color:#FFF559;}
.energy {color:#FA5858;}
.health {color:#FF9999;}
.minor {color: gray;}
.minor2 {font-size:80%;color: gray;
  white-space: normal; 
  word-break: break-all; 
  overflow-wrap: break-word;}
.money {color:#CC9900;}
.info {color: #6FCD72;}
.admin {color: #398DFA;}
.mod {color: #00CC00;}
.level {font-size:80%;color:#7cfc00;}
a.info {color: #6FCD72;}
a.info:visited {color: #6FCD72;}
a.notify {color:#FFF559;}
a.notify:visited {color:#FFF559;}
a.minor {color: gray;}
a.minor:visited{color: gray;}
a.admin {color: #398DFA;}
a.admin:visited {color: #398DFA;}
.hr {margin: 5px;}
div.hr2 {height: 2px;border: #353535;background-color: #4a5459;
  border-radius: 2px;box-sizing: border-box;}
.hr3 {margin: 3px 0;vertical-align:top;}
.hr3:hover {
	background-color:#3e4448;
}
.hr4 {
  height: auto;
  padding: 10px 15px;
  margin: 10px 0;
  display: block;
  align-items: center;
  background-color: #4a5459;
  border-radius: 5px;
  box-sizing: border-box;
}
div.hr4:hover {
	background-color:#3e4448;
}
div.hr4 img {
	padding: 0px 0px 0px 0px;
}
div.gray {background-color:#353535;}
img.port {float:left;margin-right:4px;margin-bottom:4px;}
.expline {margin: 0px 0px 0px 0px;height:2px;background-color:#FFF559;}
.button{
	background-color: #555555;
	color: white;
	padding: 2px 20px;
	border: none;
	border-radius: 5px;
  box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}
.button{
  height: 32px;
  background-color: #555555;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}
.button:hover {
  background-color: #777777;
  transform: translateY(-2px);
}
.button:active {
  background-color: #444444;
  transform: translateY(0);
}
.input, textarea {
  background-color: #2e3436;
  color: #f7f7f7;
  border: 1px solid #4a5459;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
.input:focus, textarea:focus {
  outline: none;
  border-color: #92e624;
  box-sizing: border-box;

}
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
td {
  color: #dcdcdc;
}
.navbar {
  align-self: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0px 0px 0px 1px;
  border-top: 2px solid  #4a5459;
  box-sizing: border-box;
}
.navbarDown {
  position: sticky;
  bottom: 0;
  z-index: 1000;
  border-bottom: 2px solid  #4a5459;
  box-sizing: border-box;
  background-color:#353535;
  margin-top: auto;
}
.downLinks {
  background-color: #2e3436;
  position: sticky;
  bottom: 82px;
  z-index: 1000;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0px 15px 0px 15px;
}
#floating-notification {
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 300px;
  z-index: 2000;
  padding: 15px;
  border: 2px solid #ff6600;
  background-color: #150305;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  display: block;
}
#floating-notification .notify {
  display: inline-block;
  margin: 5px 5px 0 5px;
  padding: 2px 5px;
}
.close-btn {
  font-size: 1.2em;
  font-weight: bold;
  padding: 3px 10px 3px 10px;
  cursor: pointer;
  color: #dbbb63;
  text-decoration: none;
  border: 2px solid #444240;
  border-radius: 8px;
  box-sizing: border-box;
}
.mobile-only, .desktop-only {
    display: none !important;
}
.main-content-area {
  display: flex;
  flex-direction: column;
  height: 100%; 
}
.desktop-sidebar {
  scrollbar-width: none; 
  -ms-overflow-style: none;
}
.desktop-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
@media (min-width: 866px) {
  .main-flex-container { 
    display: flex;
    flex-direction: row; 
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    border-top: 0px;
    border-right: 2px solid #4a5459; 
    border-bottom: 0px;
    border-left: 2px solid #4a5459; 
    box-sizing: border-box;
  }
  #floating-notification {
    transform: translateX(0%);
  }
  .desktop-only {
    display: block !important; 
  }
  .main-content-area {
    flex-grow: 1;
    order: 1;
    min-width: 0; 
    max-width: 750px;
    border-right: none; 
    border-left: none; 
    min-height: 100vh;
    box-sizing: border-box;
  }
  .desktop-sidebar {
    width: 300px;
    order: 0;
    flex-shrink: 0; 
    background-color: #212529; 
    padding: 5px;
    position: sticky; 
    top: 0;
    overflow-y:auto;
    box-sizing: border-box;
    height: 100vh;
    border-right: 2px solid #4a5459;
    border-top: 2px solid #4a5459;
    border-bottom: 2px solid #4a5459;
    box-sizing: border-box;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  body {
    max-width: none;
  }
}
@media (max-width: 865px) {
  .desktop-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    z-index: 3000;
    background-color: #212529;
    padding: 5px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }
  .mobile-only {
    display: block !important;
  }
  .desktop-sidebar.is-open {
    transform: translateX(0);
  }
  .mobile-menu-toggle {
    display: block !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background-color: #4a5459;
    color: #ffffff;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 1001;
    font-weight: bold;
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
    box-sizing: border-box;
  }
  .overlay.is-active {
    display: block;
  }
  .main-content-area {
    min-height: 100vh;
    overflow-x: clip;
  }
}
.htmx-request {
    opacity: 0.5;
    transition: opacity 0.2s;
    pointer-events: none; /* Защита от спам-кликов по кнопке */
}