/* =========================================================
   IMPORTS
========================================================= */
@import url("../etchat_dino_styles/variables.css");
@import url("../etchat_dino_styles/on-off.css");


/* =========================================================
   BASE / LAYOUT
========================================================= */

#adminbereich_body {
  background-color: #050262;
  color: var(--color-text-webfarbe);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
}

/* Links global im Adminbereich */
#adminbereich_body a {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-link);
  text-decoration: underline;
}

#adminbereich_body a:hover {
  color: var(--color-link-hover);
}


/* allgemeines Layout */
main {
  margin-top: 20px;
}

nav {
  margin-bottom: 10px;
}

nav a {
  text-decoration: none;
  color: #4a6cf7;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

h2 {
  margin-bottom: 15px;
}

hr {
  border: 0;
  border-top: 5px double white;
  margin: 5px 0;
}


/* =========================================================
   TYPOGRAPHY / TEXT
========================================================= */

.rot {
  color: #f00;
}

.text {
  font-size: 11pt;
  color: var(--color-text-webfarbe);
  background-color: rgba(0, 0, 0, 0.22);
  border: 1px solid #333;
  padding: 5px;
  outline: none;
}

small {
  color: #aaa;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label small {
  font-weight: normal;
  color: #666;
  margin-top: 3px;
  display: block;
}


/* =========================================================
   FORMS (BASE)
========================================================= */

input[type="text"],
input[type="number"],
input[type="file"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4a6cf7;
  outline: none;
}


/* =========================================================
   BUTTONS (GLOBAL)
========================================================= */

button,
.custom-file-btn,
input[type="submit"],
input[type="button"],
.admin-button {
  /*margin-top: 15px;*/
  padding: 8px 14px;
  background-color: #214af1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

button:hover,
.custom-file-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.admin-button:hover {
  background-color: #3a55d1;
}


/* =========================================================
   USER FORM (SPECIAL)
========================================================= */

.user-form {
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 5px;
  max-width: 520px;
}

form.user-form {
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 5px;
  max-width: 520px;
  /*margin-top: 15px;*/
}

form.user-form label {
  display: block;
  font-weight: bold;
  color: var(--color-text-webfarbe);
}

form.user-form input,
form.user-form select {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form.user-form button {
  margin-top: 15px;
}


/* =========================================================
   GRID / KACHELN
========================================================= */

.kachel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5px;
  min-height: 250px;
}

.kachel-grid .text {
  border: 1px solid #444;
  padding: 12px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.5);
}

.kachel-grid a {
  display: block;
  margin: 3px 0;
}

.kachel-grid a.inline-link {
  display: inline;
  margin: 0;
}

/* =========================================================
   TABLES
========================================================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: #00000c85;
}

td,
th {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.gerade {
	background-color: #0000ff2e;
}

.ungerade {
	background-color: #0000ff7d;
}

/* =========================================================
   TOOLBAR / ADMIN UI / Box
========================================================= */

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.admin-toolbar-box {
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid #444;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}


/* =========================================================
   CHECKBOX auf Admin Index Seite
========================================================= */

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: bold;
}

.admin-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}


/* =========================================================
   DROPZONE Smiley Container
========================================================= */

#dropzone {
  width: 95%;
  min-height: 80px;
  border: 2px dashed #4a6cf7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px;
  font-weight: bold;
  color: #4a6cf7;
  background: rgba(0, 0, 0, 0.3);
  transition: 0.2s ease;
}

#dropzone.dragover {
  border-color: #3a55d1;
  background-color: #e6ecff;
}


/* =========================================================
   SMILEYS / AVATAR
========================================================= */

.img_smiley {
  max-width: 50vh;
  max-height: 90px;
  width: auto;
  height: auto;
  display: inline-block;
  min-height: 32px;
  min-width: 32px;
}

.img_verschieben {
  cursor: grab;
  width: 25px;
  margin: 0 10px;
}

.img_verschieben:active {
  cursor: grabbing;
}

.avatar_list_admin {
  border: 1px solid #333;
  cursor: zoom-in;
  height: 15px;
  width: 15px;
  transition: transform 0.2s ease;
}

.avatar_list_admin:active {
  transform: scale(6) translate(-35%, -35%);
  position: relative;
  z-index: 10;
}


/* =========================================================
   COLOR PICKER Rollen (Allgemeine Einstellungen)
========================================================= */

.color-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-right: 15px;
  margin-bottom: 10px;
}

.color-input {
  width: 75px;
}

.color-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #999;
  margin-left: 5px;
}

.real-color-input {
  position: absolute;
  opacity: 0;
  width: 75px;
  height: 25px;
  left: 0;
  top: 0;
  cursor: pointer;
}

.kreis-buchstabe {
  display: inline-flex;
  width: 14px; /* gleiche Größe wie dein original Bild */
  height: 14px;
  color: black;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-large); /* passend zur Bildgröße */
  font-weight: bold;
  vertical-align: text-bottom; /* passt zu align="absbottom" */
  cursor: default; /* sieht aus wie ein Icon, kein Link */
}


/* =========================================================
   MISC
========================================================= */

.admin-textarea-medium {
  width: 100%;
  height: 5em;
}

/* =========================================================
   KBD STYLE (Tastaturzeichen)
========================================================= */

kbd {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow:
    0 1px 1px rgb(0 0 0 / 0.2),
    inset 0 2px 0 rgb(255 255 255 / 0.7);
  color: #333;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

/* =========================================================
   Laufschrift
========================================================= */
#speed {
	width: 70%;
}

.marquee-wrap {
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    margin: 2px 0;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marqueeAnim 10s linear infinite;
}

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

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

.rnb {
    background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, purple);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbowAnim 7s linear infinite;
}

@keyframes rainbowAnim {
    0% { background-position: 0%; }
    50% { background-position: 100%; }
    100% { background-position: 0%; }
}

/* =========================================================
   Admin Galerie
========================================================= */

.gallery-item {
  border: 1px solid #444;
  margin: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.3);
}

/* =========================================================
   Admin Backup
========================================================= */

			.container {padding: 20px; }
			.button.red { background: #C62828; }
			.button.red:hover { background: #D32F2F; }
			.backup-table tr:hover { background: #2a2f3a; }
			.backup-actions { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; }
			.section { background-color: rgba(0, 0, 0, 0.22); padding: 15px; margin-bottom: 20px; border-radius: 5px; border: 1px solid #333333; }
			.warning { background: #A40101; color: #FFCCBC; padding: 15px; border-radius: 5px; margin-bottom: 20px; border: 1px solid #8D6E63; }

/* =========================================================
   Admin Smiley und SmileyCat
========================================================= */

tr.dragging { opacity: 0.5; }

.img_drag_disabled {
    opacity: 0.3;
    cursor: default;
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

#saveSmileyBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#saveCatBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*===========================
Bewerbung, Kontakt, Anreden, Ankündigungen formular erfolgereich gespeichert
=============================*/

.success-banner {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #3e8e41;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.success-banner .close-btn {
    cursor: pointer;
    font-weight: bold;
    margin-left: 15px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.success-banner .close-btn:hover {
    opacity: 1;
}

.post {
	width: 40%;
}

/*=====================================
	Chat Styler
=======================================*/

.color-picker {
  width: 140px !important;
  cursor: pointer;
}

.sp-replacer {
  background: rgba(255,255,255,0.05);
  border: 1px solid #444;
  border-radius: 6px;
}

.label-container img {
  margin-top: 8px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

form.user-form select[name*="on-off"] {
  width: 180px;
}

.img-preview-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.img-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #ccc;
}

.img-box span {
  margin-bottom: 5px;
}

.img-box img {
  max-width: 200px;
  max-height: 100px;
  border: 1px solid #444;
  border-radius: 6px;
}

.info-tooltip {
  display: inline-block;
  margin-left: 5px;
  cursor: help;
  font-size: 16px;
}

/*=====================================
	User Gästeliste
=======================================*/

.online {
    color: green;
    font-weight: bold;
}