/* ===========================================
   STAR TREK TNG - LCARS INTERFACE DESIGN
   =========================================== */

/* LCARS Font Import - Antonio als LCARS-Alternative */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@100;200;300;400;500;600;700&display=swap');

/* LCARS Color Palette */
:root {
  --lcars-orange: #FF9C00;
  --lcars-red: #CC6666;
  --lcars-violet: #CC99CC;
  --lcars-blue: #9999FF;
  --lcars-pink: #FFCCCC;
  --lcars-peach: #FF9966;
  --lcars-purple: #9966CC;
  --lcars-skyblue: #6699CC;
  --lcars-tan: #FFCC99;
  --lcars-bg-dark: #000000;
  --lcars-bg-main: #1a1a1a;
  --lcars-text-main: #FFCC99;
  --lcars-text-light: #FFFFFF;
}

/* ========== BASIS STYLES ========== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  font-family: 'Antonio', sans-serif !important;
  font-size: 16px;
  line-height: 1.4;
  background-color: var(--lcars-bg-dark);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(153, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 156, 0, 0.1) 0%, transparent 50%);
  color: var(--lcars-text-main);
  overflow-x: hidden;
}

img {
  border: 0;
  max-width: 100%;
  max-height: 100%;
}

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

form,
input,
ul,
li,
select,
option,
textarea,
p,
div,
span,
small,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Antonio', sans-serif !important;
}

/* ========== TYPOGRAPHIE ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Antonio', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lcars-orange);
  padding: 10px 0 5px 0;
  margin: 0;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.7em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.3em; }
h6 { font-size: 1.1em; }

strong {
  text-shadow: none;
  font-weight: bold;
  color: var(--lcars-orange);
}

.center {
  text-align: center;
}

/* ========== LINKS ========== */
a,
a:hover,
a:active {
  color: var(--lcars-orange);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--lcars-peach);
  text-shadow: 0 0 10px var(--lcars-orange);
}

/* ========== FORMULAR ELEMENTE ========== */
input,
select,
option,
textarea,
.formfield,
.formfield:focus {
  height: auto;
  padding: 12px 20px;
  background-color: var(--lcars-bg-main);
  color: var(--lcars-text-main);
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.1em;
  font-weight: 500;
  
  letter-spacing: 1px;
  border: 2px solid var(--lcars-orange);
  border-radius: 20px 0 20px 0;
  outline: none;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--lcars-peach);
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.5);
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: inset 0 0 0px 9999px var(--lcars-bg-main);
  -webkit-text-fill-color: var(--lcars-text-main);
}

/* ========== BUTTONS ========== */
.formbutton,
button,
.btn {
  height: auto;
  padding: 12px 30px;
  min-width: 120px;
  color: var(--lcars-bg-dark);
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  text-align: center;
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 25px 0 25px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 156, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.formbutton:before,
button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.formbutton:hover,
button:hover {
  background: linear-gradient(135deg, var(--lcars-peach) 0%, var(--lcars-orange) 100%);
  box-shadow: 0 6px 25px rgba(255, 156, 0, 0.6);
  transform: translateY(-2px);
}

.formbutton:hover:before,
button:hover:before {
  left: 100%;
}

.formbutton:active,
button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 156, 0, 0.4);
}

.logoutbutton {
  background: linear-gradient(135deg, var(--lcars-red) 0%, #DD7777 100%);
  color: var(--lcars-text-light);
}

.logoutbutton:hover {
  background: linear-gradient(135deg, #DD7777 0%, var(--lcars-red) 100%);
}

.bottom-menu-button {
  font-size: 1.10em !important;
}

/* ========== LOGIN/REGISTER ========== */
.index_forms,
.register_forms {
  width: 500px;
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  padding: 20px;
  background: rgba(26, 26, 26, 0.8);
  border: 3px solid var(--lcars-orange);
  border-radius: 25px 0 25px 0;
}

.loginform_user,
.loginform_guest,
.loginform_password,
.loginform_roomselect,
.registerform_user,
.registerform_password,
.registerform_mail,
.registerform_genderselect,
.registerform_captcha_code {
  width: 200px;
  display: inline-block;
  margin: 10px 0;
}

.loginform_passwordlink {
  font-weight: normal;
  font-size: 1em;
  color: var(--lcars-blue);
}

.loginform_button,
.registerform_button {
  width: auto;
  margin: auto;
  margin-top: 15px;
}

/* ========== NACHRICHTEN ========== */
.message-success {
  background: linear-gradient(135deg, rgba(102, 204, 102, 0.3) 0%, rgba(51, 153, 51, 0.3) 100%);
  color: #66FF66;
  font-size: 1.1em;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  border-left: 5px solid #66FF66;
  border-radius: 0 20px 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0;
}

.message-alert,
.login_alert {
  background: linear-gradient(135deg, rgba(204, 102, 102, 0.3) 0%, rgba(153, 51, 51, 0.3) 100%);
  color: var(--lcars-red);
  font-size: 1.1em;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  border-left: 5px solid var(--lcars-red);
  border-radius: 0 20px 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0;
}

/* ========== DIVS  ========== */
div, p, table, .col {
  color: var(--lcars-text-main);
}

/* ========== SIDEBAR ========== */
#sidebar {
    display: block;
    position: fixed;
    top: 55px; 
    bottom: 0;
    right: 0;
    border: none;
    padding: 0;
    height: calc(100vh - 55px) !important; 
    background: linear-gradient(180deg, var(--lcars-bg-dark) 0%, #111 100%);
    color: var(--lcars-text-main);
    overflow: hidden;
    z-index: 100;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
}

#sidebar-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    color: var(--lcars-text-main);
    padding: 15px;
    margin: 0;
    margin-top: 0; 
    height: 100%;
    border-left: 5px solid var(--lcars-violet);
    border-radius: 0;
    width: 280px;
    overflow-x: hidden;
    overflow-y: auto;
}

#sidebar-button,
#sidebar-off {
  position: absolute;
  top: 65px;
  right: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 30px 0 0 30px;
  color: var(--lcars-bg-dark);
  background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
  text-align: center;
  line-height: 60px;
  font-size: 2em;
  transition: all 0.3s ease;
  box-shadow: -5px 0 20px rgba(153, 153, 255, 0.5);
  z-index: 101;
  display: none;
}

#sidebar-button:hover,
#sidebar-off:hover {
  background: linear-gradient(135deg, var(--lcars-skyblue) 0%, var(--lcars-blue) 100%);
  transform: translateX(-5px);
  box-shadow: -8px 0 30px rgba(153, 153, 255, 0.7);
}

.sidebar-hide {
  width: 0;
  overflow: hidden;
  animation: animate-sidebar-out 500ms;
  display: none;
  opacity: 0;
}

.sidebar-show {
  width: 280px;
  display: block;
  overflow: auto;
  opacity: 1;
  animation: animate-sidebar-in 500ms;
}

@keyframes animate-sidebar-in {
  from {
    width: 0px;
    opacity: 0;
  }
  to {
    width: 280px;
    opacity: 1;
  }
}

@keyframes animate-sidebar-out {
  from {
    width: 280px;
    opacity: 1;
  }
  to {
    width: 0px;
    opacity: 0;
  }
}

#onlinelist {
  display: block;
}

#side-menu,
#side-roomlist {
  display: none;
}

/* ========== AUTOSCROLL BADGE ========== */
#no-autoscroll {
  position: absolute;
  top: 65px;
  right: 320px;
  width: auto;
  height: auto;
  border: 2px solid var(--lcars-orange);
  background: rgba(26, 26, 26, 0.9);
  text-align: center;
  border-radius: 20px 0 20px 0;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lcars-orange);
  z-index: 200;
  transition: all 0.3s ease;
}

#no-autoscroll:hover {
  background: rgba(26, 26, 26, 1);
  border-color: var(--lcars-peach);
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.5);
}



/* ========== ONLINE LIST ========== */
.onlinelist-row {
  display: flex;
  padding: 8px;
  margin: 5px 0;
  width: 100%;
  background: rgba(255, 156, 0, 0.1);
  border-left: 4px solid var(--lcars-orange);
  border-radius: 0 15px 15px 0;
  transition: all 0.3s ease;
}

.onlinelist-row:hover {
  background: rgba(255, 156, 0, 0.2);
  border-left-color: var(--lcars-peach);
  transform: translateX(5px);
}

.onlinelist-status {
  float: left;
  height: 40px;
  width: 20px !important;
  padding: 10px 5px !important;
  margin: 0 !important;
  text-align: center;
  color: var(--lcars-orange);
  font-size: 1.2em;
}

.onlinelist-avatar {
  float: left;
  width: 40px !important;
  height: 40px;
  border-radius: 20px;
  background-color: var(--lcars-bg-main);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 10px 0 5px !important;
  padding: 0 !important;
  display: inline-block;
  border: 3px solid var(--lcars-orange);
  transition: all 0.3s ease;
}

.onlinelist-avatar:hover {
  border-color: var(--lcars-peach);
  box-shadow: 0 0 15px rgba(255, 156, 0, 0.6);
}

.onlinelist-username {
  float: left;
  width: calc(100% - 130px) !important;
  min-height: 40px;
  padding: 10px !important;
  margin: auto 0 !important;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lcars-text-main);
  transition: color 0.3s ease;
}

.onlinelist-username:hover {
  color: var(--lcars-orange);
}

.onlinelist-whisper {
  float: right;
  width: 30px;
  height: 40px;
  cursor: pointer;
  color: var(--lcars-blue);
  font-size: 1.3em;
  text-align: center;
  padding-top: 10px;
  transition: all 0.3s ease;
}

.onlinelist-whisper:hover {
  color: var(--lcars-skyblue);
  transform: scale(1.2);
}

.onlinelist-gender {
  float: left;
  width: 20px !important;
  height: 40px;
  padding: 9px 5px 0 0 !important;
  margin: auto 0;
  text-align: center;
}

/* ========== GESCHLECHTER ICONS ========== */
.male {
  color: var(--lcars-blue);
  background: var(--lcars-bg-main);
  height: 24px;
  width: 24px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  padding: 3px;
  border: 2px solid var(--lcars-blue);
  display: inline-block;
  text-align: center;
  line-height: 18px;
}

.female {
  color: var(--lcars-pink);
  background: var(--lcars-bg-main);
  height: 24px;
  width: 24px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  padding: 3px;
  border: 2px solid var(--lcars-pink);
  display: inline-block;
  text-align: center;
  line-height: 18px;
}

.trans {
  background: var(--lcars-bg-main);
  color: var(--lcars-violet);
  height: 24px;
  width: 24px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  padding: 3px;
  border: 2px solid var(--lcars-violet);
  display: inline-block;
  text-align: center;
  line-height: 18px;
}

.couple {
  background: var(--lcars-bg-main);
  color: var(--lcars-orange);
  height: 24px;
  width: 24px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  padding: 3px;
  border: 2px solid var(--lcars-orange);
  display: inline-block;
  text-align: center;
  line-height: 18px;
}

/* ========== CHAT LAYOUT ========== */
.chat-output {
    position: absolute;
    top: 60px; 
    width: 100%;
    color: var(--lcars-text-main);
    background: transparent;
    min-height: calc(100% - 180px) !important; 
    height: calc(100% - 180px) !important;
    padding: 20px;
    border: none;
    overflow-y: auto;
    overflow-x: hidden;
    resize: vertical;
    margin-top: 0;
}

.chat-footer {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
  color: var(--lcars-text-main);
  height: 120px;
  padding: 15px;
  border-top: 3px solid var(--lcars-orange);
  width: calc(100% - 280px);
}

.output-left {
  background: transparent;
  padding: 0;
}

.output-right {
  padding: 5px;
  background: transparent;
}

.input-left {
  position: relative;
  right: 0;
  top: 0;
  float: left;
  width: calc(100% - 352px);
  padding: 2px;
  margin: 0;
  height: 100%;
  background: transparent;
}

.input-tools,
.input-options {
  position: relative;
  right: 0;
  top: 0;
  float: left;
  width: 350px;
  padding: 2px;
  margin: 0;
  height: 100% !important;
  background: transparent;
}

.tools-switcher {
  cursor: pointer;
}

.tools-switcher-btn {
  padding: 0;
  cursor: pointer;
}

.tools-content {
  display: inline-flex;
  background-color: var(--lcars-bg-main);
  color: var(--lcars-text-main);
  top: 0;
  height: 100vmax;
  width: 100%;
  border: 2px solid var(--lcars-orange);
  border-right: none;
  margin-left: 29px;
  border-radius: 0 0 0 20px;
}

/* ========== ROW FARBEN ========== */
.row1 {
  background: transparent;
}

.row2 {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

/* ========== CHAT NACHRICHTEN ========== */
.chatrow {
  display: block;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 156, 0, 0.08) 0%, rgba(255, 102, 0, 0.08) 100%);
  border-left: 5px solid var(--lcars-orange);
  border-radius: 0 20px 20px 0;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.chatrow:hover {
  background: linear-gradient(135deg, rgba(255, 156, 0, 0.15) 0%, rgba(255, 102, 0, 0.15) 100%);
  transform: translateX(5px);
}

.messagetime {
  display: inline-block;
  background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
  color: var(--lcars-bg-dark);
  font-family: 'Antonio', sans-serif !important;
  font-size: 0.9em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: auto;
  text-align: center;
  border: none;
  border-radius: 15px 0 15px 0;
  padding: 5px 15px;
  margin: 0 10px 0 0;
  box-shadow: 0 2px 10px rgba(153, 153, 255, 0.4);
}

.chatmessage {
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--lcars-text-main);
  max-width: 100%;
  height: auto !important;
  padding: 10px !important;
  line-height: 1.6;
}

.botmessage {
  border: none;
  background: rgba(204, 153, 204, 0.1);
  border-left: 4px solid var(--lcars-violet);
  border-radius: 0 15px 15px 0;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--lcars-violet);
  max-width: 100%;
  padding: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sysmessage {
  display: block;
  border: none;
  border-radius: 0;
  background: rgba(153, 153, 255, 0.1);
  border-left: 4px solid var(--lcars-blue);
  font-size: 1.1em;
  font-weight: 600;
  color: var(--lcars-blue);
  padding: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 100%;
  margin: 10px 0;
}

.privmessage {
  border: none;
  background: rgba(204, 102, 102, 0.1);
  border-left: 4px solid var(--lcars-red);
  border-radius: 0 15px 15px 0;
  font-size: 1.1em;
  font-weight: 600;
  font-style: italic;
  color: var(--lcars-red);
  max-width: 100%;
  height: auto !important;
  padding: 15px !important;
}

.privmessage_intro {
  color: var(--lcars-text-light);
  background: linear-gradient(135deg, var(--lcars-red) 0%, #DD7777 100%);
  border-radius: 15px 0 15px 0;
  padding: 5px 15px;
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== BEITRITTSNACHRICHTEN ========== */
.room_comein {
  float: left;
  font-size: 1.2em;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: var(--lcars-orange);
  text-align: center;
  line-height: 24px;
  font-weight: bold;
}

.room_comein::before {
  content: '?';
}

.room_goout {
  float: left;
  font-size: 1.2em;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: var(--lcars-red);
  text-align: center;
  line-height: 24px;
  font-weight: bold;
}

.room_goout::before {
  content: '?';
}

/* ========== GHOST MODUS ========== */
.ghost {
  font-size: 0.9em;
  line-height: 0.9em;
  color: var(--lcars-red);
  background: rgba(204, 102, 102, 0.2);
  border: 2px solid var(--lcars-red);
  border-radius: 15px 0 15px 0;
  margin: 0;
  padding: 5px 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ========== SMILIES ========== */
#smilies_list {
  text-align: center;
  padding: 25px 10px !important;
  font-style: normal;
}

#smilies_list img {
  max-width: 50px;
  max-height: 50px;
  border: 2px solid var(--lcars-orange);
  border-radius: 10px;
  display: inline;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#smilies_list img:hover {
  border-color: var(--lcars-peach);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 156, 0, 0.5);
}

/* ========== IMAGES ========== */
.image-preview {
  width: auto;
  max-width: 200px;
  max-height: 200px;
  border: 3px solid var(--lcars-orange);
  border-radius: 20px 0 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-preview:hover {
  border-color: var(--lcars-peach);
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.6);
  transform: scale(1.05);
}

/* ========== TABLES ========== */
.tbl {
  color: var(--lcars-text-main);
  width: 100%;
  height: auto;
  background: rgba(26, 26, 26, 0.8);
  text-align: center;
  padding: 20px;
  border-radius: 0;
  border: none;
  border-left: 5px solid var(--lcars-orange);
}

.tbl-border {
  background: transparent;
  padding: 0;
  text-align: left;
  border: 3px solid var(--lcars-orange);
  border-radius: 25px 0 25px 0;
  color: var(--lcars-text-main);
  overflow: hidden;
}

.tblheader {
  height: auto;
  color: var(--lcars-bg-dark);
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.3em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px;
  border: none;
  border-radius: 20px 0 0 0;
}

.tblcell {
  color: var(--lcars-text-main);
  height: auto;
  background: rgba(26, 26, 26, 0.6);
  text-align: left;
  font-size: 1em;
  font-weight: 500;
  padding: 12px;
  border-radius: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 156, 0, 0.2);
}

.cell1 {
  background: rgba(255, 156, 0, 0.05);
  color: var(--lcars-text-main);
  padding: 15px !important;
  border-radius: 0;
}

.cell2 {
  background: rgba(255, 156, 0, 0.1);
  color: var(--lcars-text-main);
  padding: 15px !important;
}

/* ========== MODALS ========== */
.modal-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  color: var(--lcars-bg-dark);
  border-radius: 25px 0 0 0;
  border: none;
  font-size: 1.5em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.modal-body {
  padding: 20px;
  color: var(--lcars-text-main);
  background: var(--lcars-bg-main);
  margin: 0;
}

.modal-footer {
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
  border-radius: 0 0 0 25px;
  color: var(--lcars-text-main);
  margin: 0;
  border: none;
  border-top: 2px solid var(--lcars-orange);
}

.modal-content {
  position: relative;
  background: var(--lcars-bg-main);
  border-radius: 25px 0 25px 0;
  margin: 0;
  padding: 0;
  border: 3px solid var(--lcars-orange);
  width: 100%;
  height: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  color: var(--lcars-text-main);
  animation: lcarsModalOpen 0.4s ease;
}

@keyframes lcarsModalOpen {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  cursor: pointer;
  width: 30px;
  height: 30px;
  color: var(--lcars-bg-dark);
  font-size: 1.5em;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--lcars-red);
  transform: rotate(90deg);
}

/* ========== LIST GROUPS ========== */
.list-group,
.list-group-item {
  background-color: transparent;
  border: 0;
  display: block;
  color: var(--lcars-text-main);
}

/* ========== PANELS ========== */
.panel-header {
  font-size: 1.5em;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  color: var(--lcars-bg-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 20px 0 0 0;
}

.panel-body {
  font-size: 1.1em;
  padding: 15px;
  background: rgba(26, 26, 26, 0.8);
  color: var(--lcars-text-main);
}

/* ========== CHAT HISTORY ========== */
#chathistory {
  color: var(--lcars-text-main);
  background: var(--lcars-bg-main);
  border: 3px solid var(--lcars-orange);
  border-radius: 25px 0 25px 0;
  padding: 20px;
  min-height: 100%;
}

/* ========== SMILEY KATEGORIEN ========== */
.smiley-cat {
  height: auto;
  padding: 10px 20px;
  width: auto;
  color: var(--lcars-text-main);
  background: rgba(49, 66, 86, 0.8);
  text-align: center;
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.1em !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--lcars-orange);
  border-radius: 15px 0 15px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  display: inline-block;
}

.smiley-cat:hover {
  color: var(--lcars-orange);
  background: rgba(49, 66, 86, 1);
  border-color: var(--lcars-peach);
  box-shadow: 0 0 15px rgba(255, 156, 0, 0.5);
}

.smiley-cat-active {
  color: var(--lcars-bg-dark);
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  border-color: var(--lcars-orange);
  cursor: default !important;
  box-shadow: 0 4px 15px rgba(255, 156, 0, 0.6);
}

/* ========== AUDIO PLAYER ========== */
#player {
  background: var(--lcars-bg-main);
  border: 2px solid var(--lcars-orange);
  border-radius: 20px 0 20px 0;
  width: 300px;
  margin-left: 0;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom:50px;
}

#player input[type="image"] {
  float: left;
  height: 20px;
  margin-left: 2px;
  margin-right: 5px;
  margin-top: 2px;
}

#vol_img {
  margin-left: 0;
  width: 30px;
  color: var(--lcars-orange);
}

input[type="range"] {
  height: 34px;
  -webkit-appearance: none;
  margin: 10px 0;
  width: 150px;
  background-color: transparent;
  border: 0;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 11px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  border-radius: 5px;
  border: 2px solid var(--lcars-bg-dark);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-webkit-slider-thumb {
  height: 26px;
  width: 26px;
  background: var(--lcars-blue);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  border: 2px solid var(--lcars-bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(153, 153, 255, 0.8);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 11px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  border-radius: 5px;
  border: 2px solid var(--lcars-bg-dark);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
  border: 2px solid var(--lcars-bg-dark);
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background: var(--lcars-blue);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(153, 153, 255, 0.8);
}

#coverimage {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 80px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  background: var(--lcars-bg-dark);
  border: 3px solid var(--lcars-orange);
  border-radius: 15px 0 15px 0;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

#coverimage img {
  max-width: 74px;
  max-height: 74px;
  border: 0;
  border-radius: 12px 0 12px 0;
}

.player {
  position: relative;
  width: 300px;
  height: 100px;
  padding: 15px;
  background: linear-gradient(135deg, var(--lcars-bg-main) 0%, #000 100%);
  border: 3px solid var(--lcars-orange);
  border-radius: 25px 0 25px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.playerdisplay {
  position: absolute;
  left: 95px;
  top: 5px;
  height: 60px;
  width: 190px;
  padding: 5px;
  color: var(--lcars-orange);
  font-family: 'Antonio', sans-serif !important;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--lcars-bg-dark);
  border: 2px solid var(--lcars-orange);
  border-radius: 15px 0 15px 0;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

#song_title {
  position: absolute;
  top: 20px;
  left: 5px;
  width: 180px;
  white-space: nowrap;
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.3em;
  font-weight: 700;
  overflow: hidden;
  color: var(--lcars-orange);
}

#play_button {
  position: absolute;
  left: 20px;
  top: 70px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 2px solid var(--lcars-orange);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  color: var(--lcars-bg-dark);
  text-align: center;
  line-height: 36px;
  font-size: 1.5em;
  transition: all 0.3s ease;
}

#play_button:hover {
  background: linear-gradient(135deg, var(--lcars-peach) 0%, var(--lcars-orange) 100%);
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.8);
}

#speaker {
  position: absolute;
  left: 70px;
  top: 72px;
  width: 36px;
  height: 36px;
  font-size: 36px;
  color: var(--lcars-orange);
  text-shadow: 0 0 10px rgba(255, 156, 0, 0.8);
}

#change_vol {
  position: absolute;
  top: 72px;
  left: 110px;
}

audio {
  display: none;
}

/* ========== MARQUEE / TICKER ========== */
.newsticker,
.marquee {
  max-width: 100vw;
  white-space: nowrap;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.8);
  border-left: 4px solid var(--lcars-orange);
  padding: 10px;
  color: var(--lcars-text-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsticker span,
.marquee span {
  display: inline-block;
  padding-left: 102%;
  animation: marquee 25s linear infinite;
}

.newsticker span:hover,
.marquee span:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-102%);
  }
}

/* ========== FOOTER ========== */
.index_footer {
  text-align: center;
  padding: 20px;
  color: var(--lcars-text-main);
  margin-bottom: 30px;
}

.index_rendertime {
  color: var(--lcars-orange);
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.copyright_footer {
  font-size: 0.9em;
  text-align: center;
  color: var(--lcars-text-main);
  padding: 15px;
}

.copyright_footer,
.copyright_footer > a {
  color: var(--lcars-orange);
}

/* ========== DEKORATIVE ELEMENTE ========== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 60px;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, transparent 100%);
  border-radius: 0 0 30px 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.6;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 60px;
  background: linear-gradient(45deg, var(--lcars-violet) 0%, transparent 100%);
  border-radius: 0 30px 0 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.6;
}

/* ========== LCARS ANIMATIONEN ========== */
@keyframes lcars-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 156, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 156, 0, 0.8);
  }
}

.lcars-animated {
  animation: lcars-pulse 2s ease-in-out infinite;
}

/* LCARS Status Indicator */
.lcars-status-indicator {
  position: fixed;
  top: 15px;
  left: 220px;
  width: 150px;
  height: 35px;
  background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  color: var(--lcars-bg-dark);
  text-align: center;
  line-height: 35px;
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 17px 0 17px 0;
  z-index: 1001;
  animation: lcars-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 156, 0, 0.5);
}

/* ========== SCROLLBARS ========== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--lcars-bg-dark);
  border-left: 2px solid var(--lcars-orange);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
  border-radius: 10px;
  border: 2px solid var(--lcars-bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--lcars-peach) 0%, var(--lcars-orange) 100%);
  box-shadow: 0 0 10px rgba(255, 156, 0, 0.8);
}

::-webkit-scrollbar-corner {
  background: var(--lcars-bg-dark);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--lcars-orange) var(--lcars-bg-dark);
}

/* ========== RESPONSIVE DESIGN ========== */
@media only screen and (min-width: 1025px) {
  #sidebar-button {
    display: none;
  }
  
  #sidebar {
    display: block;
  }
  
  #sidebar-off {
    display: none;
  }
  
  .chat-output {
    width: calc(100% - 25px);
  }
  
  #sidebar {
    border: none;
    padding: 0;
    height: 100% !important;
    background: linear-gradient(180deg, var(--lcars-bg-dark) 0%, #111 100%);
  }
  
  #sidebar-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 15px;
    margin: 0;
    height: 100%;
    border-left: 5px solid var(--lcars-violet);
    border-radius: 0;
    width: 280px;
  }
}

@media only screen and (max-width: 1024px) {
  .chat-output {
    background: transparent;
    width: 100%;
    padding: 10px;
  }
  
  .chat-footer {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    width: 100%;
    height: 120px;
  }
  
  .output-left {
    padding: 5px;
    padding-bottom: 10px;
  }
  
  .output-right {
    display: none;
  }
  
  .input-left {
    width: 100%;
  }
  
  .input-tools,
  .input-options {
    display: none;
  }
  
  #chatmessages {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: inline-block;
  }
  
  #sidebar-button {
    display: block;
  }
  
  #sidebar {
    display: block;
  }
  
  #sidebar-off {
    display: block;
  }
  
  #no-autoscroll {
    position: absolute;
    top: 20px;
    right: 80px;
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 15px 0 15px 0;
  }
  
  body::before,
  body::after {
    display: none;
  }
  
  .lcars-status-indicator {
    display: none;
  }
  
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.6em; }
  h3 { font-size: 1.4em; }
}

@media only screen and (max-width: 768px) {
  .chatrow {
    padding: 10px;
    margin: 5px 0;
  }
  
  .messagetime {
    font-size: 0.8em;
    padding: 4px 10px;
  }
  
  .chatmessage,
  .botmessage,
  .sysmessage,
  .privmessage {
    font-size: 1em;
    padding: 10px !important;
  }
  
  .tblheader {
    font-size: 1.1em;
    padding: 10px;
  }
  
  .modal-header {
    font-size: 1.2em;
    padding: 15px;
  }
}

/* ========== OPTIONS MENU ========== */
.options-menu {
  font-size: 1.1em;
  line-height: 1.6em;
  color: var(--lcars-text-main);
}

.options-menu a {
  color: var(--lcars-orange);
  transition: all 0.3s ease;
}

.options-menu a:hover {
  color: var(--lcars-peach);
}

/* ========== MISC UTILITIES ========== */
.lcars-panel {
  background: rgba(26, 26, 26, 0.8);
  border: 3px solid var(--lcars-orange);
  border-radius: 25px 0 25px 0;
  padding: 20px;
  margin: 10px 0;
}

.lcars-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--lcars-orange) 0%, transparent 100%);
  margin: 20px 0;
  border: none;
}

.lcars-badge {
  display: inline-block;
  padding: 5px 15px;
  background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
  color: var(--lcars-bg-dark);
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 12px 0 12px 0;
  box-shadow: 0 2px 10px rgba(153, 153, 255, 0.4);
}

/* ========== LCARS STATUS BAR (Top) ========== */
.lcars-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, var(--lcars-bg-main) 0%, rgba(0,0,0,0.95) 100%);
    border-bottom: 3px solid var(--lcars-orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.8);
}

.lcars-status-left,
.lcars-status-center,
.lcars-status-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lcars-pill {
    padding: 5px 15px;
    border-radius: 15px 0 15px 0;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lcars-pill-orange {
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
    color: var(--lcars-bg-dark);
}

.lcars-pill-blue {
    background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
    color: var(--lcars-bg-dark);
}

.lcars-pill-violet {
    background: linear-gradient(135deg, var(--lcars-violet) 0%, var(--lcars-purple) 100%);
    color: var(--lcars-bg-dark);
}

#lcars-system-time {
    color: var(--lcars-orange);
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 156, 0, 0.5);
}

/* ========== LCARS CORNER ELEMENTS ========== */
.lcars-corner {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 998;
}

.lcars-corner-top-left {
    top: 55px;
    left: 0;
    background: linear-gradient(135deg, var(--lcars-orange) 0%, transparent 70%);
    border-radius: 0 0 50px 0;
    opacity: 0.3;
}

.lcars-corner-bottom-left {
    bottom: 125px;
    left: 0;
    background: linear-gradient(45deg, var(--lcars-violet) 0%, transparent 70%);
    border-radius: 0 50px 0 0;
    opacity: 0.3;
}

/* ========== LCARS WRAPPER ========== */
.lcars-wrapper {
    padding-top: 60px;
}

/* ========== LCARS LOADING ANIMATION ========== */
.lcars-loading {
    padding: 40px;
}

.lcars-loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 156, 0, 0.2);
    border-top: 5px solid var(--lcars-orange);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: lcars-spin 1s linear infinite;
}

@keyframes lcars-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lcars-loading-text {
    color: var(--lcars-orange);
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: lcars-blink 1.5s ease-in-out infinite;
}

@keyframes lcars-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== LCARS INPUT PANEL ========== */
.lcars-input-panel {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border-top: 3px solid var(--lcars-orange);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.8);
}

.lcars-input-group {
    gap: 10px;
}

.lcars-btn {
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.lcars-btn-label {
    display: block;
    font-size: 0.75em;
    margin-top: 3px;
    letter-spacing: 1px;
}

.lcars-btn-blue {
    background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
}

.lcars-btn-orange {
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
}

.lcars-input {
    background: var(--lcars-bg-dark) !important;
    border: 2px solid var(--lcars-orange) !important;
    color: var(--lcars-orange) !important;
    font-weight: 600;
    
    letter-spacing: 1px;
}

.lcars-input::placeholder {
    color: rgba(255, 156, 0, 0.5);
}

.lcars-quick-smilies {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--lcars-violet);
    border-radius: 0 15px 15px 0;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* ========== LCARS TOOLS PANEL ========== */
.lcars-tools-panel {
    padding: 10px;
}

.lcars-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.lcars-tool-btn {
    padding: 5px 6px;
    font-size: 0.65em;
    min-height: unset;
    height: auto;
    background: linear-gradient(135deg, rgba(153, 153, 255, 0.2) 0%, rgba(102, 153, 204, 0.2) 100%) !important;
    border: 2px solid var(--lcars-blue) !important;
    color: white;
}

.lcars-tool-btn:hover {
    background: linear-gradient(135deg, rgba(153, 153, 255, 0.4) 0%, rgba(102, 153, 204, 0.4) 100%) !important;
    border-color: var(--lcars-skyblue) !important;
    box-shadow: 0 5px 20px rgba(153, 153, 255, 0.5) !important;
}

.lcars-tool-btn i {
    font-size: 1.1em;
}

.lcars-tool-btn span {
    font-size: 0.9em;
    line-height: 1;
}


/* ========== RESPONSIVE ANPASSUNG ========== */
@media (max-width: 1400px) {
    .lcars-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lcars-tool-btn {
        padding: 10px 6px;
        font-size: 0.75em;
    }
}

@media (max-width: 1024px) {
    .input-tools,
    .input-options {
        display: none;
    }
}

@media (max-width: 1024px) {
    .lcars-wrapper {
        padding-top: 50px; 
    }
    
    .chat-output {
        top: 50px;
        min-height: calc(100% - 170px) !important;
        height: calc(100% - 170px) !important;
    }
    
    #sidebar-button,
    #sidebar-off,
    #no-autoscroll {
        top: 55px;
    }
}

/* ========== LCARS SIDEBAR VERBESSERUNGEN ========== */
.lcars-sidebar {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border-left: 5px solid var(--lcars-violet);
}

.lcars-sidebar-toggle {
    background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
    border-radius: 30px 0 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lcars-toggle-label {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 1px;
}

.lcars-sidebar-close {
    background: linear-gradient(135deg, var(--lcars-red) 0%, #DD7777 100%);
    border-radius: 30px 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

/* ========== SIDEBAR NAVIGATION - 2x2 GRID ========== */

.lcars-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-left: -13px;
}

.lcars-nav-btn {
    background: rgba(255, 156, 0, 0.1);
    border: 2px solid var(--lcars-orange);
    border-radius: 12px 0 12px 0; 
    padding: 10px 8px; 
    color: var(--lcars-text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7em; 
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; 
    min-height: unset; 
}

.lcars-nav-btn:hover {
    background: rgba(255, 156, 0, 0.2);
    border-color: var(--lcars-peach);
    transform: scale(1.03); 
}

.lcars-nav-btn.lcars-nav-active {
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
    color: var(--lcars-bg-dark);
    border-color: var(--lcars-orange);
    box-shadow: 0 3px 15px rgba(255, 156, 0, 0.6);
}

.lcars-nav-btn.lcars-nav-logout {
    background: rgba(204, 102, 102, 0.1);
    border-color: var(--lcars-red);
    grid-column: auto; 
}

.lcars-nav-btn.lcars-nav-logout:hover {
    background: linear-gradient(135deg, var(--lcars-red) 0%, #DD7777 100%);
    color: var(--lcars-text-light);
}

.lcars-nav-btn i {
    font-size: 1.5em; 
}

.lcars-nav-btn span {
    font-size: 0.95em;
    line-height: 1.1;
    text-align: center;
}

@media (max-width: 320px) {
    .lcars-sidebar-nav {
        grid-template-columns: 1fr; 
    }
}


@media (max-width: 320px) {
    .lcars-nav-btn.lcars-nav-logout {
        grid-column: span 1;
    }
}

/* ========== LCARS PANEL HEADER ========== */
.lcars-panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 156, 0, 0.1);
    border-left: 5px solid var(--lcars-orange);
    border-radius: 0 20px 20px 0;
}

.lcars-header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--lcars-orange), transparent);
}

.lcars-panel-header h3 {
    margin: 0;
    color: var(--lcars-orange);
    font-size: 1.2em;
    white-space: nowrap;
}

/* ========== LCARS AUTO-SCROLL CONTROL ========== */
.lcars-autoscroll-control {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--lcars-orange);
    border-radius: 20px 0 20px 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lcars-autoscroll-control label {
    color: var(--lcars-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcars-autoscroll-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--lcars-orange);
}

/* ========== LOGIN PAGE STYLES ========== */
.lcars-login-wrapper {
    min-height: 100vh;
    background: var(--lcars-bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(153, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 156, 0, 0.15) 0%, transparent 50%);
    position: relative;
    overflow-x: hidden;
}

.lcars-login-topbar {
    height: 80px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border-bottom: 4px solid var(--lcars-orange);
    display: flex;
    align-items: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.lcars-bar-left,
.lcars-bar-right {
    width: 200px;
    height: 40px;
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
}

.lcars-bar-left {
    border-radius: 0 20px 20px 0;
}

.lcars-bar-right {
    border-radius: 20px 0 0 20px;
}

.lcars-bar-center {
    flex: 1;
    text-align: center;
    color: var(--lcars-orange);
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 156, 0, 0.8);
}

.lcars-login-container {
    padding: 40px 20px;
}

.lcars-login-panel {
    background: rgba(26, 26, 26, 0.8);
    border: 3px solid var(--lcars-orange);
    border-radius: 30px 0 30px 0;
    padding: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lcars-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.lcars-logo-frame {
    padding: 20px;
    background: var(--lcars-bg-dark);
    border: 3px solid var(--lcars-orange);
    border-radius: 25px 0 25px 0;
    box-shadow: 0 0 30px rgba(255, 156, 0, 0.5);
}

.lcars-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.lcars-logo-text {
    text-align: center;
}

.lcars-logo-text h1 {
    color: var(--lcars-orange);
    font-size: 3em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(255, 156, 0, 0.8);
}

.lcars-subtitle {
    color: var(--lcars-blue);
    font-size: 1.2em;
    letter-spacing: 3px;
}

.lcars-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 25px 0 25px 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lcars-section-header {
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lcars-header-cap {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    animation: lcars-pulse 2s ease-in-out infinite;
}

.lcars-cap-orange {
    background: var(--lcars-peach);
    box-shadow: 0 0 20px var(--lcars-orange);
}

.lcars-cap-blue {
    background: var(--lcars-skyblue);
    box-shadow: 0 0 20px var(--lcars-blue);
}

.lcars-cap-violet {
    background: var(--lcars-purple);
    box-shadow: 0 0 20px var(--lcars-violet);
}

.lcars-section-header h3 {
    color: var(--lcars-bg-dark);
    margin: 0;
    font-size: 1.3em;
}

.lcars-section-body {
    padding: 25px;
}

.lcars-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lcars-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 156, 0, 0.05);
    border-left: 4px solid var(--lcars-orange);
    border-radius: 0 15px 15px 0;
    transition: all 0.3s ease;
}

.lcars-stat-row:hover {
    background: rgba(255, 156, 0, 0.1);
    transform: translateX(5px);
}

.lcars-stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--lcars-text-main);
}

.lcars-stat-icon {
    font-size: 1.5em;
}

.lcars-stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--lcars-orange);
    text-shadow: 0 0 10px rgba(255, 156, 0, 0.5);
}

.lcars-ticker-section {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--lcars-violet);
    border-radius: 20px 0 20px 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lcars-ticker-label {
    background: linear-gradient(135deg, var(--lcars-violet) 0%, var(--lcars-purple) 100%);
    color: var(--lcars-bg-dark);
    padding: 10px 20px;
    border-radius: 15px 0 15px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.lcars-ticker-content {
    flex: 1;
    overflow: hidden;
}

.lcars-footer-links {
    text-align: center;
    padding: 20px;
}

.lcars-footer-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
    color: var(--lcars-bg-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px 0 20px 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lcars-footer-btn:hover {
    background: linear-gradient(135deg, var(--lcars-skyblue) 0%, var(--lcars-blue) 100%);
    box-shadow: 0 6px 30px rgba(153, 153, 255, 0.6);
    transform: translateY(-3px);
    color: var(--lcars-bg-dark);
}

.lcars-login-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(26, 26, 26, 0.95);
    border-top: 3px solid var(--lcars-orange);
}

.lcars-bar-segment {
    flex: 1;
    height: 40px;
    border-radius: 20px;
}

.lcars-seg-1 { background: var(--lcars-orange); }
.lcars-seg-2 { background: var(--lcars-blue); }
.lcars-seg-3 { background: var(--lcars-violet); }
.lcars-seg-4 { background: var(--lcars-red); }

/* ========== LCARS BACKGROUND ANIMATION ========== */
.lcars-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.lcars-grid-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lcars-orange), transparent);
    opacity: 0.1;
    animation: lcars-grid-move 15s linear infinite;
}

.lcars-grid-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.lcars-grid-line:nth-child(2) { top: 50%; animation-delay: 5s; }
.lcars-grid-line:nth-child(3) { top: 80%; animation-delay: 10s; }

@keyframes lcars-grid-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.lcars-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--lcars-orange);
    border-radius: 50%;
    opacity: 0.5;
    animation: lcars-particle-float 20s linear infinite;
}

.lcars-particle:nth-child(4) { left: 20%; animation-duration: 18s; }
.lcars-particle:nth-child(5) { left: 50%; animation-duration: 22s; }
.lcars-particle:nth-child(6) { left: 80%; animation-duration: 20s; }

@keyframes lcars-particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .lcars-status-bar {
        padding: 0 10px;
        height: 40px;
    }
    
    .lcars-pill {
        font-size: 0.7em;
        padding: 4px 10px;
    }
    
    .lcars-bar-center {
        font-size: 1em;
    }
    
    .lcars-logo-text h1 {
        font-size: 2em;
    }
    
    .lcars-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .lcars-sidebar-nav {
        grid-template-columns: 1fr;
    }
    
    .lcars-nav-btn.lcars-nav-logout {
        grid-column: span 1;
    }
}

/* ===========================================
   CSS-FIX: KORRIGIERTES Layout
   - Commands, Profile, Avatar ? OBEN in Sidebar
   - Text Color ? UNTEN rechts neben Input
   =========================================== */

/* ========== QUICK TOOLS in Sidebar (oben) ========== */

.lcars-sidebar-quicktools {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--lcars-blue);
    border-radius: 12px 0 12px 0;
    box-sizing: border-box; /* Border inkludiert */
    width: 100%; /* Volle Container-Breite */
}

.lcars-quicktools-header {
    text-align: center;
    color: var(--lcars-blue);
    font-weight: 700;
    font-size: 0.75em;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--lcars-blue);
}

.lcars-quicktools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.lcars-quicktool-btn {
    background: linear-gradient(135deg, rgba(153, 153, 255, 0.2) 0%, rgba(102, 153, 204, 0.2) 100%);
    border: 2px solid var(--lcars-blue);
    border-radius: 10px 0 10px 0;
    padding: 8px 6px;
    color: var(--lcars-text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lcars-quicktool-btn:hover {
    background: linear-gradient(135deg, rgba(153, 153, 255, 0.4) 0%, rgba(102, 153, 204, 0.4) 100%);
    border-color: var(--lcars-skyblue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(153, 153, 255, 0.5);
}

.lcars-quicktool-btn i {
    font-size: 1.3em;
    flex-shrink: 0;
}

.lcars-quicktool-btn span {
    font-size: 1em;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

/* Avatar Button über volle Breite */
.lcars-quicktool-btn:nth-child(3) {
    grid-column: 1 / -1;
}

/* ========== TEXT COLOR Button (unten rechts) ========== */

.lcars-tools-panel-bottom {
    padding: 5px 15px 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lcars-tool-btn-large {
    background: linear-gradient(135deg, rgba(153, 153, 255, 0.2) 0%, rgba(102, 153, 204, 0.2) 100%);
    border: 2px solid var(--lcars-blue);
    border-radius: 20px 0 20px 0;

    padding: 2px 14px 10px 14px;
    min-height: 42px;
    max-height: 70px;

    color: var(--lcars-text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1em;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;

    display: flex;
    
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 100%;
}

.lcars-tool-btn-large:hover {
    background: linear-gradient(135deg, rgba(153, 153, 255, 0.4) 0%, rgba(102, 153, 204, 0.4) 100%);
    border-color: var(--lcars-skyblue);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(153, 153, 255, 0.6);
}

.lcars-tool-btn-large i {
    font-size: 2.5em;
}

.lcars-tool-btn-large span {
    font-size: 1.1em;
    line-height: 1.2;
    text-align: center;
}

/* ========== Input Tools Container ========== */

.input-tools {
    position: relative;
    right: 0;
    top: 0;
    float: left;
    width: 350px;
    padding: 2px 10px 2px 2px;
    margin: 0;
    height: 100% !important;
    background: transparent;
}

/* ========== Alte Strukturen deaktivieren ========== */

.lcars-tools-grid,
.lcars-tools-top,
.lcars-tools-bottom,
.lcars-tools-panel {
    display: none !important;
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .lcars-quicktools-grid {
        grid-template-columns: 1fr; /* 1 Spalte auf Mobile */
    }
    
    .lcars-quicktool-btn {
        padding: 12px 10px;
        font-size: 0.75em;
    }
}

@media (max-width: 1024px) {
    .input-tools {
        display: none; /* Text Color Button auf Mobile ausblenden */
    }
}

/* ===========================================
   CSS-FIX: Mobile Sidebar Toggle Problem
   Füge diese Änderungen zu deiner styles.css hinzu
   =========================================== */

/* ========== SIDEBAR TOGGLE BUTTONS - MOBILE FIX ========== */

/* Sidebar Toggle Button (zum Öffnen) */
#sidebar-button {
    position: absolute;
    top: 65px;
    right: 0;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 30px 0 0 30px;
    color: var(--lcars-bg-dark);
    background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-skyblue) 100%);
    text-align: center;
    line-height: 60px;
    font-size: 2em;
    transition: all 0.3s ease;
    box-shadow: -5px 0 20px rgba(153, 153, 255, 0.5);
    z-index: 101;
    display: none; /* Standard: ausgeblendet */
}

/* Sidebar Close Button (zum Schließen) - IN der Sidebar */
#sidebar-off {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 2px solid var(--lcars-red);
    border-radius: 20px;
    color: var(--lcars-text-light);
    background: linear-gradient(135deg, var(--lcars-red) 0%, #DD7777 100%);
    text-align: center;
    line-height: 36px;
    font-size: 1.5em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(204, 102, 102, 0.5);
    z-index: 102;
    display: none; /* Standard: ausgeblendet */
}

#sidebar-button:hover,
#sidebar-off:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVE - MOBILE ========== */

@media (max-width: 1024px) {
    /* Sidebar Toggle Button nur auf Mobile sichtbar */
    #sidebar-button {
        display: block;
    }
    
    /* Wenn Sidebar GESCHLOSSEN ist */
    #sidebar.sidebar-hide {
        display: none;
    }
    
    #sidebar.sidebar-hide + #sidebar-button {
        display: block; /* Öffnen-Button zeigen */
    }
    
    /* Wenn Sidebar GEÖFFNET ist */
    #sidebar.sidebar-show {
        display: block;
        position: fixed;
        top: 55px;
        right: 0;
        bottom: 0;
        width: 280px;
        z-index: 150; /* Über allem anderen */
    }
    
    #sidebar.sidebar-show #sidebar-off {
        display: block; /* Schließen-Button (X) zeigen */
    }
    
    #sidebar.sidebar-show ~ #sidebar-button {
        display: none !important; /* Öffnen-Button verstecken wenn Sidebar offen */
    }
    
    /* Overlay wenn Sidebar geöffnet */
    #sidebar.sidebar-show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
    }
}

/* ========== DESKTOP ========== */

@media (min-width: 1025px) {
    /* Auf Desktop beide Toggle-Buttons verstecken */
    #sidebar-button,
    #sidebar-off {
        display: none !important;
    }
    
    /* Sidebar immer sichtbar */
    #sidebar {
        display: block !important;
    }
}

/* ===========================================
   CSS-FIX: Modal Border-Radius Alignment
   Der Header-Radius muss kleiner sein als der Content-Radius
   =========================================== */

.modal-content {
    position: relative;
    background: var(--lcars-bg-main);
    border-radius: 20px;
    margin: 0;
    padding: 0;
    border: 3px solid var(--lcars-orange);
    width: 100%;
    height: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    color: var(--lcars-text-main);
    animation: lcarsModalOpen 0.4s ease;
    overflow: hidden; /* WICHTIG: Verhindert Überlauf */
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
    color: var(--lcars-bg-dark);
    border-radius: 17px 17px 0 0; /* 17px = 20px (Content) - 3px (Border) */
    border: none;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.modal-body {
    padding: 20px;
    color: var(--lcars-text-main);
    background: var(--lcars-bg-main);
    margin: 0;
}

.modal-footer {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border-radius: 0 0 17px 17px; /* 17px = 20px (Content) - 3px (Border) */
    color: var(--lcars-text-main);
    margin: 0;
    border: none;
    border-top: 2px solid var(--lcars-orange);
}

/* ===========================================
   CSS-FIX: Chat-Höhe mit Top-Bar korrigieren
   Füge diese Änderungen zu deiner styles.css hinzu
   =========================================== */

/* ========== LCARS STATUS BAR (Top) - Höhe definieren ========== */

.lcars-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px; /* Fixe Höhe der Top-Bar */
    background: linear-gradient(180deg, var(--lcars-bg-main) 0%, rgba(0,0,0,0.95) 100%);
    border-bottom: 3px solid var(--lcars-orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.8);
}

/* ========== WRAPPER - Abstand für Top-Bar ========== */

.lcars-wrapper {
    padding-top: 53px; /* 50px (Bar-Höhe) + 3px (Border) */
}

/* ========== CHAT OUTPUT - Höhe angepasst ========== */

.chat-output {
    position: absolute;
    top: 0; /* Startet direkt nach Wrapper-Padding */
    width: 100%;
    color: var(--lcars-text-main);
    background: transparent;
    min-height: calc(100vh - 113px) !important; /* 100vh - (53px Top + 120px Footer) */
    height: calc(100vh - 113px) !important;
    padding: 20px;
    border: none;
    overflow-y: auto;
    overflow-x: hidden;
    resize: vertical;
    margin-top: 0;
}

/* ========== CHAT FOOTER - Position ========== */

.chat-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    color: var(--lcars-text-main);
    height: 120px;
    padding: 15px;
    border-top: 3px solid var(--lcars-orange);
    width: calc(100% - 280px); /* Minus Sidebar-Breite */
    z-index: 100;
}

/* ========== SIDEBAR - Position angepasst ========== */

#sidebar {
    display: block;
    position: fixed;
    top: 53px; /* 50px (Bar) + 3px (Border) */
    bottom: 0;
    right: 0;
    border: none;
    padding: 0;
    height: calc(100vh - 53px) !important;
    background: linear-gradient(180deg, var(--lcars-bg-dark) 0%, #111 100%);
    color: var(--lcars-text-main);
    overflow: hidden;
    z-index: 100;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
}

/* ========== AUTO-SCROLL CONTROL - Position ========== */

#no-autoscroll {
    position: fixed;
    top: 63px; /* 10px unter der Top-Bar */
    right: 320px; /* 280px (Sidebar) + 40px Abstand */
}

/* ========== RESPONSIVE ANPASSUNGEN ========== */

@media (max-width: 1024px) {
    .lcars-wrapper {
        padding-top: 53px;
    }
    
    .chat-output {
        width: 100%;
        min-height: calc(100vh - 173px) !important;
        height: calc(100vh - 173px) !important;
    }
    
    .chat-footer {
        width: 100%;
    }
    
    #sidebar {
        top: 53px;
        height: calc(100vh - 53px) !important;
    }
    
    #no-autoscroll {
        top: 63px;
        right: 80px;
    }
}

/* ===========================================
   CSS: COMLINK SLIDER
   Füge diese Styles zu deiner styles.css hinzu
   =========================================== */

/* ========== COMLINK BUTTON - Klickbar ========== */

.lcars-pill-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.lcars-pill-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 156, 0, 0.6);
}

.lcars-pill-clickable.active {
    background: linear-gradient(135deg, var(--lcars-peach) 0%, var(--lcars-orange) 100%);
    box-shadow: 0 4px 20px rgba(255, 156, 0, 0.8);
}

/* ========== COMLINK SLIDER ========== */

.comlink-slider {
    position: fixed;
    top: 53px; /* Unter der Top-Bar */
    left: 50%;
    transform: translateX(-50%) translateY(-100%); /* Initial oben versteckt */
    width: 600px;
    max-width: 90vw;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 3px solid var(--lcars-orange);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 998;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

/* Slider geöffnet */
.comlink-slider.comlink-open {
    transform: translateX(-50%) translateY(0);
}

/* ========== COMLINK CONTENT ========== */

.comlink-content {
    padding: 0;
}

.comlink-header {
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--lcars-orange);
}

.comlink-header h3 {
    margin: 0;
    color: var(--lcars-bg-dark);
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 2px;
}

.comlink-close {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--lcars-bg-dark);
    border-radius: 20px;
    width: 36px;
    height: 36px;
    color: var(--lcars-bg-dark);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comlink-close:hover {
    background: var(--lcars-red);
    color: var(--lcars-text-light);
    border-color: var(--lcars-red);
    
}

.comlink-body {
    padding: 20px;
    color: var(--lcars-text-main);
    max-height: 400px;
    overflow-y: auto;
}

/* ========== OVERLAY (optional) ========== */

.comlink-slider.comlink-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .comlink-slider {
        width: 95vw;
    }
    
    .comlink-header h3 {
        font-size: 1.1em;
    }
    
    .comlink-body {
        padding: 15px;
        max-height: 300px;
    }
}

/* ===========================================
   CSS: Player Redesign für Comlink Slider
   Füge diese Styles zu deiner styles.css hinzu
   =========================================== */

/* ========== PLAYER IM COMLINK SLIDER ========== */

/* Player Container - Größer und breiter */
.comlink-body .player {
    position: relative;
    width: 100%; /* Volle Breite im Slider */
    height: 200px; /* Höher als vorher (100px) */
    padding: 15px;
    background: linear-gradient(135deg, var(--lcars-bg-main) 0%, #000 100%);
    border: 3px solid var(--lcars-orange);
    border-radius: 20px 0 20px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

/* Cover Image - Links positioniert */
.comlink-body #coverimage {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 110px;
    height: 110px;
    padding: 0;
    overflow: hidden;
    background: var(--lcars-bg-dark);
    border: 3px solid var(--lcars-orange);
    border-radius: 15px 0 15px 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.comlink-body #coverimage img {
    max-width: 104px;
    max-height: 104px;
    border: 0;
    border-radius: 12px 0 12px 0;
}

/* Player Display - Song Info Bereich */
.comlink-body .playerdisplay {
    position: absolute;
    left: 140px; /* Rechts vom Cover */
    top: 15px;
    height: 110px;
    width: calc(100% - 160px); /* Volle Breite minus Cover und Padding */
    padding: 10px;
    color: var(--lcars-orange);
    font-family: 'Antonio', sans-serif !important;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--lcars-bg-dark);
    border: 2px solid var(--lcars-orange);
    border-radius: 15px 0 15px 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    box-sizing: border-box;
}

/* Song Title - innerhalb Display */
.comlink-body #song_title {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    white-space: nowrap;
    font-family: 'Antonio', sans-serif !important;
    font-size: 1.4em;
    font-weight: 700;
    overflow: hidden;
    color: var(--lcars-orange);
    text-overflow: ellipsis;
    margin-top: 15px;
}

/* Play Button - Unten links */
.comlink-body #play_button {
    position: absolute;
    left: 15px;
    top: 135px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    border: 2px solid var(--lcars-orange);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-peach) 100%);
    color: var(--lcars-bg-dark);
    text-align: center;
    line-height: 35px;
    font-size: 1.8em;
    transition: all 0.3s ease;
}

.comlink-body #play_button:hover {
    background: linear-gradient(135deg, var(--lcars-peach) 0%, var(--lcars-orange) 100%);
    box-shadow: 0 0 20px rgba(255, 156, 0, 0.8);
    transform: scale(1.05);
}

/* Speaker Icon - Unten, links neben Volume */
.comlink-body #speaker {
    position: absolute;
    left: 80px;
    top: 125px;
    width: 36px;
    height: 36px;
    font-size: 36px;
    color: var(--lcars-orange);
    text-shadow: 0 0 10px rgba(255, 156, 0, 0.8);
}

/* Volume Control - Unten rechts */
.comlink-body #change_vol {
    position: absolute;
    top:125px;
    left: 115px;
    width: calc(100% - 135px); /* Angepasst an verfügbaren Platz */
}

/* Volume Slider angepasst */
.comlink-body input[type="range"] {
    width: 100%;
    height: 34px;
}

/* Audio Element versteckt */
.comlink-body audio {
    display: none;
}

/* ============================== */
/* Mobile Optimierung Player     */
/* ============================== */

@media (max-width: 768px) {

    .comlink-body .player {
        height: 170px;
        padding: 10px;
        border-width: 2px;
        border-radius: 16px 0 16px 0;
        
    }

    /* Cover verkleinern */
    .comlink-body #coverimage {
        top: 10px;
        left: 10px;
        width: 90px;
        height: 90px;
        border-width: 2px;
        border-radius: 12px 0 12px 0;
    }

    .comlink-body #coverimage img {
        max-width: 84px;
        max-height: 84px;
        border-radius: 10px 0 10px 0;
    }

    /* Display enger */
    .comlink-body .playerdisplay {
        left: 115px;
        top: 10px;
        height: 90px;
        width: calc(100% - 130px);
        padding: 8px;
        border-width: 2px;
        border-radius: 12px 0 12px 0;
    }

    /* Titel kompakter */
    .comlink-body #song_title {
        font-size: 1.15em;
        margin-top: 10px;
    }

    /* Play Button */
    .comlink-body #play_button {
        left: 10px;
        top: 110px;
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 1.5em;
        border-radius: 20px;
    }

    /* Speaker */
    .comlink-body #speaker {
        left: 60px;
        top: 108px;
        width: 32px;
        height: 32px;
        font-size: 32px;
    }

    /* Volume */
    .comlink-body #change_vol {
        top: 108px;
        left: 95px;
        width: calc(100% - 110px);
    }

    .comlink-body input[type="range"] {
        height: 28px;
    }
}


/* Extra kleine Smartphones */
@media (max-width: 480px) {

    .comlink-body .player {
        height: 155px;
        padding: 8px;
    }

    .comlink-body #coverimage {
        width: 80px;
        height: 80px;
    }

    .comlink-body #coverimage img {
        max-width: 74px;
        max-height: 74px;
    }

    .comlink-body .playerdisplay {
        left: 105px;
        height: 80px;
        width: calc(100% - 120px);
        padding: 6px;
    }

    .comlink-body #song_title {
        font-size: 1.05em;
    }

    .comlink-body #play_button {
        width: 36px;
        height: 36px;
        line-height: 32px;
        font-size: 1.4em;
    }

    .comlink-body #speaker {
        font-size: 28px;
    }

    .comlink-body #change_vol {
        width: calc(100% - 100px);
    }
}

.comlink-body .playerdisplay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,156,0,0.05) 50%,
        transparent 100%
    );
    animation: lcars-shimmer 10s linear infinite;
    pointer-events: none;
}

@keyframes lcars-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* LCARS Glow Pulse */

.comlink-body .player,
.comlink-body .playerdisplay,
.comlink-body #coverimage {
    animation: lcars-glow 6s ease-in-out infinite;
}

@keyframes lcars-glow {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(255,156,0,0.45),
            0 0 25px rgba(255,156,0,0.25),
            0 10px 30px rgba(0,0,0,0.9);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255,156,0,0.8),
            0 0 45px rgba(255,156,0,0.4),
            0 10px 30px rgba(0,0,0,0.9);
    }
}

.comlink-body .player::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,156,0,0.08) 0px,
        rgba(255,156,0,0.08) 1px,
        transparent 2px,
        transparent 5px
    );
    animation: lcars-scan 6s linear infinite;
    border-radius: inherit;
}

@keyframes lcars-scan {
    from { background-position: 0 0; }
    to   { background-position: 0 60px; }
}