* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}

body {
  width: 100%;
  height: 100%;
  background-color: #212121;
}


h3 {
  color: #4C0099;
}

/* Header */
.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  margin-right: 25px;
}

/* Index */
.logs {
  background: #282323;
  padding: 20px;
  border-radius: 5px;
  -webkit-box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  margin-bottom: 10px;
}

.logs p {
  font-size: 1.0em;
  line-height: 1.2em;
  color: #ccc;
}

.logs p a {
  color: #4C0099;
  text-decoration: underline;
}

/* Login */
main {
  padding-top: 10%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.form {
  width: 500px;
  height: auto;
  background: #282323;
  border-radius: 10px;
  padding: 40px;
  -webkit-box-shadow: 1px 1px 15px #512CD5;
  box-shadow: 1px 1px 15px #512CD5;
}

.form-conteiner {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.form-title {
  padding-bottom: 10px;
}

.form-title section h2 {
  font-size: 2em;
  color: #ccc;
}

.form-errors ul {
  list-style: none;
}

.form-warning ul {
  list-style: none;
}

.form-success ul {
  list-style: none;
}

.form-errors ul li {
  color: #D32F2F;
  font-size: 0.8em;
  font-weight: bold;
}

.form-warning ul li {
  color: #FBA31A;
  font-size: 0.8em;
  font-weight: bold;
}

.form-success ul li {
  color: #56C596;
  font-size: 0.8em;
  font-weight: bold;
}

.form form input {
  width: 100%;
  height: 40px;
  background: #433f3f;
}

.form form select {
  width: 100%;
  height: 40px;
  background: #433f3f;
}

.form form input {
  border-bottom: 1px solid #433f3f;
  color: rgb(204, 204, 204);
}

.form form input::-webkit-input-placeholder {
  color: rgb(204, 204, 204);
}

.form form input:focus,
.form form input:focus {
  border-bottom: 3px solid #4C0099;
}

form input[type="submit"] {
  margin-top: 20px;
  border-radius: 3px;
  color: rgb(204, 204, 204);
  background: rgb(59, 27, 101);
  background: -moz-linear-gradient(90deg, rgb(59, 27, 101) 42%, rgb(105, 58, 168) 100%);
  background: -webkit-linear-gradient(90deg, rgb(59, 27, 101) 42%, rgb(105, 58, 168) 100%);
  background: linear-gradient(90deg, rgb(59, 27, 101) 42%, rgb(105, 58, 168) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3224b0", endColorstr="#7436fe", GradientType=1);
  font-weight: bold;
  cursor: pointer;
}

.form .reset-message {
  color: #705c5c;
  font-size: 10px;
}

.form .reset-message:hover {
  color: #4C0099;
}

/* Логи */
.params {
  width: auto;
  background: rgb(255, 255, 255);
  padding: 20px;
  border-radius: 5px;
  -webkit-box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.params-column_row {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-line-pack: justify;
  align-content: space-between;
  margin-top: 10px;
}

.params-column_row:first-child {
  margin-top: 0;
}

.params-column_row input,
.params-column_row select {
  width: 200px;
  border: 1px solid #433f3f;
  border-radius: 3px;
  height: 35px;
  padding: 0 10px;
  margin-top: 7px;
}

.params-column_row input:focus,
.params-column_row select:focus {
  border-bottom: 3px solid #4C0099;
}

.params-column_row select {
  width: 220px;
  height: 37px;
}

.params-column_row p {
  font-size: 1.2em;
  font-weight: bold;
}

/* Promocodes */
.content-items_col {
  background: #282323;
  border-radius: 5px;
  padding: 20px;
  -webkit-box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 10px;
}

.content-items_col:first-child {
  margin-top: 0;
}

.content-items_col section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.content-items_col section span {
  display: block;
  padding: 0 15px;
  height: 25px;
  line-height: 25px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  border-radius: 3px;
  font-size: 1.35em;
  background: #4C0099;
  margin-top: 5px;
}

.content-items_col section p {
  font-size: 1.5em;
  line-height: 35px;
  margin-left: 15px;
  color: rgb(204, 204, 204);
}

.content-items_col a {
  display: block;
  width: 150px;
  height: 35px;
  background: #4C0099;
  border-radius: 3px;
  text-align: center;
  line-height: 35px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 1.35em;
}

.content-items_add {
  background: #282323;
  border-radius: 5px;
  -webkit-box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

.content-items_add a {
  display: block;
  font-size: 3em;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  width: 100%;
  color: rgb(204, 204, 204);
  -webkit-transition-duration: .2s;
  -o-transition-duration: .2s;
  transition-duration: .2s;
}

.content-items_add a:hover {
  background: #282323;
  color: rgb(204, 204, 204);
  -webkit-transition-duration: .2s;
  -o-transition-duration: .2s;
  transition-duration: .2s;
}

/* API Promostats */
.table-container {
  width: 100%;
  overflow-y: auto;
  _overflow: auto;
  margin: 0 0 1em;
}

table {

  font-weight: bold;
  font-size: 15px;
  border-collapse: collapse;
  width: 100%;
}

.content-table {
  background: rgb(255, 255, 255);
  border-radius: 5px;
  padding: 20px;
  -webkit-box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
}

.content-table table th {
  font-weight: bold;
  font-size: 1.5em;
}

th {
  background-color: #4C0099;
}

th,
td {
  text-align: left;
  padding: 8px;
  color: rgb(204, 204, 204);
}

tr {
  border: 1px solid rgb(204, 204, 204);
}

tr:hover {
  background-color: rgb(204, 204, 204);
}

tr:hover td {
  color: rgb(0, 0, 0);
}

/* Редактировать */
textarea {
  width: 100%;
  color: rgb(204, 204, 204);
  background: #2d2d2d;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 1em;
}

/* Footer */
footer {
  width: 100%;
  background: rgb(68, 68, 68);
  height: 50px;
}

footer p {
  text-align: center;
  line-height: 50px;
  color: rgb(204, 204, 204);
  font-size: 1.3em;
}

footer p a {
  color: rgb(204, 204, 204);
  text-decoration: underline;
}

.header-left,.header-right{display:flex;align-items:center;gap:14px}
.header-inline-link{display:inline-block!important;margin:0!important}
.server-switch-label{color:#888;font-size:12px}
.server-switch{height:30px;background:#413f43;color:#ddd;border:1px solid #555;border-radius:3px;padding:0 10px}
.server-select-card{width:620px;max-width:calc(100vw - 40px);background:#282323;border-radius:8px;padding:34px;box-shadow:1px 1px 15px #512CD5;color:#ccc}
.server-select-card h2{text-align:center;margin:0 0 8px}
.server-select-hint{text-align:center;color:#8f8f8f;font-size:13px;margin-bottom:22px}
.server-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.server-card{min-height:105px;background:#353135;border:1px solid #4b474b;border-radius:6px;color:#ddd;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:6px}
.server-card:hover{border-color:#4C0099;background:#30243b}
.server-card strong{font-size:19px}.server-card span{font-size:12px;color:#888}
.logs-error-box{margin:28px auto;max-width:900px;background:#2c2222;border:1px solid #6b2a2a;color:#ddd;padding:18px 20px;border-radius:5px}
.logs-error-box strong{color:#ff7777}.logs-retry-btn{margin-left:14px;background:#4C0099;color:#fff;border:0;border-radius:3px;padding:7px 14px;cursor:pointer}
@media(max-width:760px){.server-grid{grid-template-columns:1fr}.header-left,.header-right{flex-wrap:wrap}}


/* v20: preserve old panel visuals */
.legacy-index-shell {
  position: relative;
}

/* Keep the original navbar untouched; this tiny control is separate. */
.legacy-server-bar {
  position: fixed;
  top: 10px;
  right: 58px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #888;
  font-size: 11px;
  pointer-events: auto;
}
.legacy-server-select {
  height: 27px;
  min-width: 52px;
  background: #413f43;
  color: #ddd;
  border: 1px solid #514d51;
  border-radius: 2px;
  padding: 0 7px;
  font-size: 11px;
}

/* Truly unknown rows are shown separately and do not override legacy row styles. */
.unknown-log-separator {
  margin: 18px 10px 8px;
  padding-top: 10px;
  border-top: 1px solid #3b3333;
  color: #777;
  font-size: 12px;
}
.logs-file-with-extra > p {
  margin-left: 10px;
}
.logs-file-with-extra > p a {
  color: #4C0099;
  text-decoration: underline;
}

/* Do not let our shell alter dimensions/layout of the compiled legacy page. */
.legacy-index-shell > .index,
.legacy-index-shell > div:first-child {
  width: 100%;
}
