/* detrado-theme.css | Kompaktes, professionelles Business-Theme */

:root {
    --primary-color: #313552;       /* Dunkles Grau-Blau */
    --primary-gradient: linear-gradient(135deg, #313552 0%, #434664 100%);
    --secondary-color: #f7f8fa;     /* Sehr helles Grau */
    --success-color: #21a179;       /* Neutrales Grün */
    --warning-color: #edc64680;       /* Weiches Gelb */
    --danger-color: #e05757;        /* Seriöses Rot */
    --dark-color: #24253c;          /* Fast Schwarz */
    --light-color: #fff;
    --border-color: #e2e4ea;
    --accent-yellow: #edc64680;
    --accent-blue: #21a179;         /* Grün als Akzent */

}

.text-primary {
    --bs-text-opacity: 1;
    color: #313552!important;
}


body {
    background: var(--secondary-color);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--dark-color);
    font-size: 15px;
}

.main-container {
    background: var(--light-color);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 3px 16px -2px rgba(49,53,82,0.07);
    margin: 18px;
    
    padding: 16px 20px;
}

.header-section {
    background: var(--primary-gradient);
    color: var(--light-color);
    padding: 20px 20px 18px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-yellow);
    border-radius: 10px 10px 0 0;
    margin-bottom: 8px;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.control-panel {
    background: var(--light-color);
    border-radius: 7px;
    padding: 0.7em 1em;
    margin: 0.5em 0;
    box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.06);
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0.7em;
    
    min-height: 450px;
	z-index: 1;
}

.canvas-area {
    background: var(--light-color);
    border-radius: 7px;
    padding: 0.7em 1em;
    box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.06);
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    border: 1px dashed var(--accent-blue);
    border-radius: 7px;
    min-height: 340px;
    background: #f7f8fa;
    transition: all 0.2s;
}
.image-container:hover {
    border-color: var(--accent-yellow);
    background: #fcf7eb;
}

.background-image {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
    box-shadow: 0 2px 7px -2px rgba(49,53,82,0.08);
}

.sidebar,
.properties-panel {
    background: var(--light-color);
    border-radius: 7px;
    padding: 1em 1.1em;
    box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.06);
    height: fit-content;
	position: sticky;
	top: 80px;     /* Abstand zum oberen Rand, kann an das Control Panel angepasst werden */
	align-self: flex-start; /* Falls Sidebar im flex-Layout ist */
	height: fit-content;    /* Optional: damit sie sich nicht auf volle Höhe dehnt */
}

.field-list {
    max-height: 320px;
    overflow-y: auto;
}

.field-item {
    background: linear-gradient(135deg, #f7f8fa 0%, #eeeeee 100%);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.38em 0.7em;
    margin-bottom: 0.35em;
    cursor: move;
    transition: all 0.14s;
    display: flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.97em;
}
.field-item:hover {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #fff 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px -2px rgba(49,53,82,0.08);
}

.btn-modern, .btn {
    border-radius: 4px;
    padding: 0.45em 1.2em;
    font-weight: 600;
    font-size: 0.97em;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    margin: 0.2em 0 0.6em 0;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.11s;
}
.btn-modern:hover, .btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 2px 8px 0 rgba(33,161,121,0.09);
}

.btn-primary-modern, .btn-primary {
    background: var(--primary-gradient);
    color: var(--light-color);
}


.btn-success-modern, .btn-success {
    background: var(--success-color);
    color: var(--light-color);
}

.btn-warning-modern, .btn-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-danger-modern, .btn-danger {
    background: var(--danger-color);
    color: var(--light-color);
}

/* Form Controls */
.form-control-modern,
input, select, textarea {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.45em 0.75em;
    background: var(--light-color);
    font-size: 0.97em;
    color: var(--dark-color);
    margin-bottom: 0.85em;
    box-shadow: none;
    transition: border 0.14s, box-shadow 0.13s;
}
.form-control-modern:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px #21a17922;
    outline: none;
}

/* Labels & Akzente */
label, .label, .group-title {
    background: none;
    color: var(--primary-color);
    border-radius: 0;
    font-weight: 600;
    font-size: 0.97em;
    padding: 0;
    margin-bottom: 0.18em;
    display: block;
}

/* Tabellen */
table {
    border-collapse: collapse;
    width: 100%;
    background: var(--light-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 1.1em;
    font-size: 0.96em;
}
th, td {
    padding: 0.45em 0.7em;
    text-align: left;
}
th {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
tr:nth-child(even) {
    background: #f5f6f8;
}

/* JSON Output */
.json-output-container {
    background: var(--light-color);
    border-radius: 7px;
    padding: 1em 1.1em;
    margin: 0.7em 0.5em;
    box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.06);
}
.json-output {
    background: var(--dark-color);
    color: #ffe;
    border-radius: 4px;
    padding: 0.8em;
    font-family: 'Courier New', monospace;
    resize: vertical;
    border: none;
    font-size: 0.96em;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 1.1em;
    color: #56586a;
    font-size: 0.95em;
}
.loading-spinner {
    width: 1.6em;
    height: 1.6em;
    border: 2.5px solid var(--border-color);
    border-top: 2.5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.7em;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Error */
.error-message {
    color: var(--danger-color);
    text-align: center;
    padding: 0.7em;
    font-style: italic;
    font-size: 0.96em;
}

.custom-field-btn {
    background: var(--success-color);
    color: var(--light-color);
    padding: 0.55em 0.85em;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.7em;
    transition: box-shadow 0.12s, transform 0.10s;
    font-size: 0.97em;
}
.custom-field-btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 1.5px 6px 0 rgba(33,161,121,0.09);
}

/* Felder auf Bild */
.field-on-image {
    position: absolute;
    background: rgba(255,255,255,0.40);
    border: 1px dashed var(--primary-color);
    padding: 2.5px 6px;
    cursor: move;
    user-select: none;
    min-width: 38px;
    word-wrap: break-word;
    z-index: 10;
    border-radius: 3px;
    font-size: 0.97em;
    transition: border 0.10s, background 0.10s;
}
.field-on-image:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-blue);
}
.field-on-image.selected {
    border: 1.2px solid var(--dark-color);
}

.delete-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--danger-color);
    color: var(--light-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}

.resize-handle {
    position: absolute;
    bottom: -2.5px;
    right: -2.5px;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    cursor: se-resize;
    border-radius: 2px;
}
.resize-handle:hover {
    background: var(--dark-color);
}

/* Grid-Linien */
.grid-line-h, .grid-line-v {
    position: absolute;
    background: #21a17933;
    pointer-events: none;
    display: none;
    z-index: 5;
}
.grid-line-h {
    height: 1px; width: 100%; left: 0;
}
.grid-line-v {
    width: 1px; height: 100%; top: 0;
}

/* Field Groups */
.field-group { margin-bottom: 0.6em; }

/* Responsives Grid */
@media (max-width: 1200px) {
    .workspace {
        grid-template-columns: 1fr;
        gap: 0.8em;
    }
}

/* Kleinere Anpassungen und Sticky-Panel */
.control-panel-sticky {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--light-color);
    box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.06);
    transition: box-shadow 0.13s;
}

.card.shadow-lg {
    box-shadow: 0 2.5px 10px rgba(49,53,82,0.07), 0 1px 3.5px rgba(33,161,121,0.07);
    border-radius: 7px;
}

.workspace-info {
    position: absolute;
    right: 7px; bottom: 7px;
    font-size: 11px;
    color: #888;
    background: rgba(255,255,255,0.92);
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #e2e4ea;
    pointer-events: none;
}
.workspace-menu {
    background: var(--light-color);
    border-radius: 0.7em;
    box-shadow: 0 2px 7px #e2e4ea;
    border: 1px solid #f0f0f0;
    margin-bottom: 1.1em;
    min-height: 41px;
}
.workspace-menu h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0;
}
.workspace-menu .bi-easel { color: var(--primary-color);}
.workspace-menu .bi-info-circle { cursor: pointer; transition: color 0.11s;}
.workspace-menu .bi-info-circle:hover { color: var(--accent-yellow);}
.workspace-menu select.form-select {
    min-width: 170px;
    border-radius: 0.5em;
    border-color: #e2e4ea;
    font-size: 0.97em;
}

/* Settings Panel */
.settings-panel {
    background: var(--light-color);
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(49,53,82,0.07), 0 1px 3.5px #e2e4ea;
    border: none;
    max-width: 360px;
    padding: 1em 1.1em;
}
.settings-panel .form-label {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.18em;
    font-size: 0.97em;
}
.settings-panel .form-control,
.settings-panel .form-control-modern {
    border-radius: 4px;
    border-color: #e2e4ea;
    font-size: 0.97em;
}
.settings-panel .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px #31355215;
}
.settings-panel .form-control-color {
    padding: 0.1em;
    border: 1px solid #ddd;
    cursor: pointer;
}
.settings-panel .input-group { gap: 0.45em;}
.settings-panel .form-control[readonly] {
    background: #f8f9fa;
    color: #888;
    border-color: #e2e4ea;
    cursor: default;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1900px;
    }
}

.form-control-color {
    min-width: 2em;
    border-radius: 0.6em 0 0 0.6em;
    border: none;
    box-shadow: 0 0 3.5px #e2e4ea;
    cursor: pointer;
    padding: 0.2em;
}

input[type="file"].form-control {
    border-radius: 0.6em;
}

/* Placeholder Styling */
::-webkit-input-placeholder { color: #b7b7b7; }
::-moz-placeholder { color: #b7b7b7; }
:-ms-input-placeholder { color: #b7b7b7; }
::placeholder { color: #b7b7b7; font-size: 0.96em; }

/* Utility Styles */
hr {
    border: none;
    border-top: 1.2px solid var(--secondary-color);
    margin: 1.2em 0;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.13s;
    font-size: 0.97em;
}
a:hover {
    color: var(--accent-blue);
}

.dropzone {
      border: 3px dashed #ccc;
      border-radius: 16px;
      padding: 10px;
      text-align: center;
      font-size: 1em;
      color: #aaa;
      cursor: pointer;
      transition: border-color 0.3s, color 0.3s;
      margin-bottom: 0px;
	  max-width: 250px;
    }
    .dropzone.dragover {
      border-color: #4287f5;
      color: #4287f5;
      background: #f5faff;
	  z-index: 1052;
    }
    #fileList {
      list-style: none;
      padding: 0;
    }
    #fileList li {
      margin-bottom: 10px;
      font-size: 1em;
    }
    .preview-img {
      max-width: 120px;
      margin-top: 5px;
      border-radius: 8px;
      box-shadow: 0 2px 8px #0001;
    }

.modal {
	
	z-index:1051;
	position: fixed;
}
	
.ribbon {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 1rem;
   min-height: 38px !important;   /* vorher 48px */
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  
}

.ribbon .form-control,
.ribbon .form-control-sm,
.ribbon .form-select,
.ribbon .form-select-sm,
.ribbon input[type="color"] {
  height: 36px !important;
  min-height: 36px !important;
  line-height: 1.2 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}

.ribbon .btn,
.ribbon .btn-sm {
  height: 36px !important;
  min-height: 36px !important;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  margin-bottom: 0 !important;
}

.ribbon label,
.ribbon .dropdown,
.ribbon .dropdown-toggle {
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  height: 36px;
}

.ribbon input[type="file"] {
  display: none;
}

.ribbon,
.container,
.container.py-3 {
  overflow: visible !important;
  position: sticky;
  top: 0;
 z-index: 2;
}


#unicodeModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(36, 40, 45, 0.17);
  justify-content: center;
  align-items: center;
}

#unicodeModal .modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  padding: 22px 26px 20px 26px;
  min-width: 320px;
  max-width: 740px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  animation: fadein 0.13s;
}
@keyframes fadein {
  from { opacity:0; transform: scale(.98);}
  to   { opacity:1; transform: scale(1);}
}
#unicodeModal .modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #495069;
  cursor: pointer;
  line-height: 1;
  transition: color .13s;
}
#unicodeModal .modal-close:hover { color: #c23030; }

#unicodeModal h2 {
  margin: 0 0 13px 0;
  font-size: 1.21rem;
  font-weight: 600;
  color: #253257;
  text-align: left;
}

.emoji-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 7px;
  border-bottom: 1px solid #e7e8f3;
  padding-bottom: 4px;
}
.emoji-tabs button {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #556;
  cursor: pointer;
  padding: 2px 10px 4px 10px;
  border-radius: 8px 8px 0 0;
  margin-bottom: -2px;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.emoji-tabs button.active, .emoji-tabs button:hover {
  background: #e9f2ff;
  color: #1560bd;
}

#unicodeGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  max-height: 130px;
  overflow-y: auto;
  margin: 0 0 7px 0;
}
#unicodeGrid button {
  background: #f5f7fa;
  border: 1px solid #dde3ee;
  border-radius: 7px;
  font-size: 1.12rem;
  width: 2em;
  height: 2em;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s, transform .13s;
  box-shadow: 0 0.5px 2px #c6dbfa0e;
}
#unicodeGrid button:hover, #unicodeGrid button:focus {
  background: #e3eefe;
  border-color: #6e9be4;
  outline: none;
  transform: scale(1);
}

#unicodeCopied {
  font-size: .96rem;
  color: #30b34f;
  margin-top: 3px;
  display: none;
  text-align: center;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
        background: #efefef;
        margin-bottom: 20px;
		border-radius: 12px;
    }
}

.modal-backdrop {
	z-index:5;
	position: revert;
	--bs-backdrop-bg: #00000000;}
	
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;700&display=swap');

.log-monitor {
  background: linear-gradient(135deg, #23272b 70%, #232b35 100%);
  color: #d3e1ef;
  font-family: 'Fira Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 1rem;
  border: 1.5px solid #6c757d;
  border-radius: 10px;
  padding: 10px;
  height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
  position: relative;
  
}

.log-monitor::before {
  content: '';
  display: block;
  position: absolute;
  top: -4px; left: 20px; right: 20px; height: 4px;
  background: linear-gradient(90deg, transparent, #9ec5fe 70%, transparent);
  border-radius: 4px;
  filter: blur(0.5px);
  opacity: 0.3;
  animation: lightbar 3s infinite linear;
}

@keyframes lightbar {
  0% { left: 20px; right: 70%; opacity: 0.25; }
  50% { left: 50%; right: 20px; opacity: 0.4; }
  100% { left: 20px; right: 70%; opacity: 0.25; }
}

.log-monitor::-webkit-scrollbar {
  width: 6px;
  background: #21a179;
  border-radius: 5px;
}
.log-monitor::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 5px;
}

.mt-5 {
    margin-top: 1rem !important;
}

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

.quick-action-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(50, 56, 85, 0.02);
    transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
    cursor: pointer;
    color: #373857;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-action-card:hover,
.quick-action-card:focus {
    box-shadow: 0 6px 24px rgba(50, 56, 85, 0.11);
    border-color: #c9d1e0;
    background: #f4f6fb;
    text-decoration: none;
    transform: translateY(-2px) scale(1.03);
}

.quick-action-card i {
    font-size: 2.5rem;
    color: #373857;
    margin-bottom: 0.5rem;
    transition: color 0.14s;
}
.quick-action-card:hover i {
    color: #3d4b91; /* Dunklere Akzentfarbe */
}

.quick-action-card .card-title {
    font-weight: 600;
    color: #373857;
    margin-bottom: 0.3rem;
    font-size: 1.08rem;
}

.quick-action-card .card-text {
    color: #707083;
    font-size: 0.96em;
}

.quick-actions .col-6,
.quick-actions .col-md-4,
.quick-actions .col-lg-3 {
    min-width: 180px;
}


.modal {
  position: fixed !important;

}

.nav-item {
	padding-right: 25px;
	}
	
/* ===== Shopware 6 Style für Cards und Quick Actions ===== */

/* Dashboard Cards */
.dashboard-card,
.stats-card,
.card,
.shadow-sm {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 2.5px rgba(49,53,82,0.06);
    padding: 1.2rem 1.5rem;
    transition: box-shadow 0.14s, border-color 0.14s;
	margin-bottom: 1rem;
}

/* Flachere, hellere Cards beim Hover */
.dashboard-card:hover,
.stats-card:hover,
.card:hover,
.shadow-sm:hover {
    box-shadow: 0 4px 20px rgba(49,53,82,0.11);
    border-color: #d7e2f0;
    background: #fafbfc;
}

/* Quick Action Cards – Flat, klar, modern */
.quick-action-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--light-color);
    box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.04);
    transition: box-shadow 0.16s, border-color 0.14s, background 0.13s;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.quick-action-card:hover,
.quick-action-card:focus {
    box-shadow: 0 4px 22px rgba(49,53,82,0.09);
    border-color: #b2c0d3;
    background: #f5f8fb;
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

/* Icons anpassen: Shopware-like */
.quick-action-card i {
    font-size: 2.7rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    transition: color 0.14s;
}
.quick-action-card:hover i {
    color: var(--accent-blue); /* Akzentfarbe auf Hover */
}

/* Titel & Text */
.quick-action-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}
.quick-action-card .card-text {
    color: #8a93a6;
    font-size: 0.97em;
}

/* Responsive Spacing */
.quick-actions .col-6,
.quick-actions .col-md-4,
.quick-actions .col-lg-3 {
    min-width: 180px;
    padding-bottom: 0.5rem;
	max-height: 234px;
}

/* Buttons im Card-Style */
.btn, .btn-modern {
    border-radius: 5px;
    font-weight: 600;
    box-shadow: none;
    background: var(--primary-gradient);
    color: #fff;
    transition: background 0.13s, box-shadow 0.13s;
}
.btn:hover, .btn-modern:hover {
    background: var(--accent-blue);
    color: #fff;
}

.modal-content {
  border-radius: 14px !important;
  box-shadow: 0 8px 32px -6px rgba(49,53,82,0.13);
  border: none;
  background: var(--light-color);
}

/* Canvas Area */
.canvas-area {
    background: var(--light-color);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 12px -4px rgba(49,53,82,0.07);
    padding: 1.2rem 1.5rem;
    transition: box-shadow 0.13s, border-color 0.13s, background 0.11s;
}

.canvas-area:hover {
    background: #f9fafc;
    border-color: #b2c0d3;
}

/* Sidebar & Properties Panel */
.sidebar, .properties-panel {
    background: var(--light-color);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 1px 5px 0 rgba(49,53,82,0.07);
    padding: 1.1rem 1.5rem;
    transition: box-shadow 0.13s, border-color 0.13s, background 0.11s;
}
.sidebar h5, .properties-panel h5 {
    font-size: 1.09rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.field-on-image {
    background: rgba(255,255,255,0.40);
    border: 1.5px dashed var(--primary-color);
    border-radius: 4px;
    font-size: 1em;
    box-shadow: 0 0.5px 2px #31355210;
    transition: border 0.10s, background 0.11s;
}
.field-on-image.selected {
    border: 2px solid var(--accent-blue);
    background: #e9f4f3;
}

.card,
.shadow-sm,
.dashboard-card {
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--light-color);
    box-shadow: 0 1.5px 8px 0 rgba(49,53,82,0.06);
    transition: box-shadow 0.16s, border-color 0.12s, background 0.13s;
}
.card-header {
    background: #f7f8fa;
    border-radius: 14px 14px 0 0;
    border-bottom: 1.5px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.09rem;
}
.form-control,
.form-select,
input, select, textarea {
    border-radius: 5px;
    border: 1.2px solid var(--border-color);
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 1em;
    transition: border 0.14s, box-shadow 0.14s;
    box-shadow: none;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px #21a17922;
    outline: none;
}
.form-label,
label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1em;
}
.btn, .btn-modern {
    border-radius: 5px;
    font-weight: 600;
    box-shadow: none;
    background: var(--primary-gradient);
    color: #fff;
    transition: background 0.13s, box-shadow 0.13s;
}
.btn-outline-primary {
    border: 1.3px solid var(--accent-blue);
    color: var(--accent-blue);
    background: var(--light-color);
}
.btn-outline-primary:hover {
    background: var(--accent-blue);
    color: #fff;
}
.card .card-body {
    padding: 1.1rem 1.3rem;
}
.card .btn {
    border-radius: 6px;
    font-weight: 500;
}
.card img.rounded-circle {
    border: 2.5px solid var(--border-color);
}

.btn-outline-secondary:active {
	
	background-color: #F00;}
	
	
/* --- Kompakteres Dashboard: Cards & Schnellaktionen --- */

/* Dashboard Cards: Weniger Padding */
.dashboard-card,
.stats-card,
.card,
.shadow-sm {
    padding: 0.8rem 1rem !important;
    margin-bottom: 0.7rem !important;
}

.card .card-body, .dashboard-card .card-body {
    padding: 0.7rem 0.8rem !important;
}

/* Dokumenten-Slider: Cards kleiner & enger */


/* Schnellaktionen: Kompaktere Cards */
.quick-action-card {
    min-height: 110px !important;
    padding: 0.6rem 0.7rem !important;
    border-radius: 8px !important;
}

.quick-action-card i {
    font-size: 1.6rem !important;
    margin-bottom: 0.15rem !important;
}

.quick-action-card .card-title {
    font-size: 0.98rem !important;
    margin-bottom: 0.12rem !important;
}

.quick-action-card .card-text {
    font-size: 0.92em !important;
    margin-bottom: 0.06rem !important;
}

.quick-actions .col-6,
.quick-actions .col-md-4,
.quick-actions .col-lg-3 {
    min-width: 140px !important;
    max-width: 210px !important;
    padding-bottom: 0.2rem !important;
    max-height: 175px !important;
	height: 175px;
}

/* Weniger Abstand zw. Titel & Content */
.dashboard-card h5,
.stats-card h5 {
    margin-bottom: 0.5rem !important;
    font-size: 1.04rem !important;
}

/* Optional: Gaps bei .row & .g-4 im Dashboard anpassen */
.quick-actions.row.g-4 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 0.7rem !important;
}

/* Für sehr kleine Bildschirme alles noch kompakter */
@media (max-width: 900px) {
    #vorlagenSlider {
        width: 98vw !important;
    }
    #vorlagenSlider .card {
        width: 90vw !important;
        min-width: 150px !important;
    }
}


/* Kompakter Öffnen-Button NUR im VorlagenSlider */
#vorlagenSlider .btn {
    padding: 0.19rem 0.55rem !important;
    font-size: 0.97em !important;
    min-width: unset !important;
    height: 32px !important;
    border-radius: 7px !important;
    line-height: 1.1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    margin-top: 0.25rem !important;
}

/* Icon im Button kleiner */
#vorlagenSlider .btn i {
    font-size: 1.1em !important;
    margin-right: 0.2em !important;
}

/* --- Öffnen-Button immer unten, mit 20px Abstand --- */
#vorlagenSlider .card-body {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end; /* Button wandert nach unten */
    min-height: 180px;         /* oder je nach Card-Höhe */
    padding-bottom: 20px !important; /* Abstand zum unteren Rand */
}

#vorlagenSlider .btn {
    align-self: center;
    margin-top: auto;   /* nimmt alle freie Höhe bis zum Button */
}

.ruler-horizontal {
    position: absolute;
    left: 40px;
    top: 0;
    right: 0;
    height: 24px;
    background: #fafafc;
    border-bottom: 1px solid #ddd;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.ruler-vertical {
    position: absolute;
    top: 24px;
    left: 0;
    width: 40px;
    bottom: 0;
    background: #fafafc;
    border-right: 1px solid #ddd;
    z-index: 10;
    pointer-events: none;
    flex-direction: column;
    align-items: flex-end;
    display: flex;
}


.ribbon-slider-group {
    min-width: 130px;
}
.ribbon-slider {
    height: 1.2rem;
    padding: 0;
    margin-bottom: -4px;
    accent-color: #2346a3; /* Deine CI-Farbe! */
}
.slider-scale {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-top: 8px;
}
.slider-scale span {
    min-width: 1.5em;
    text-align: center;
    display: inline-block;
    pointer-events: none;
}

.signature-field {
    background: rgba(255,255,255,0.0);
    box-shadow: 0 0 2px #aaa;
    border: 1.5px dashed #2377b2;
    border-radius: 8px;
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
}

.signature-field canvas {
    background: transparent;
    display: block;
    border-bottom: 1px solid #888; /* „Linie“ für Unterschrift */
}

.signature-placeholder {
    color: #bbb;
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-style: italic;
    user-select: none;
}

.emoji-btn {
    font-size: 1.6rem;
    margin: 0.12em 0.22em;
    padding: 0.16em 0.38em;
    border: none;
    background: #f2f3f6;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
}
.emoji-btn:hover {
    background: #c9e5fd;
}
#unicodeCopied {
    display: none;
    color: #43aa34;
    font-size: 1.1em;
    text-align: center;
    margin-top: 1em;
}
#emojiTabs {
    margin-bottom: 12px;
}
#emojiTabs button {
    margin-right: 8px;
    border: none;
    background: #f2f3f7;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.14s;
}
#emojiTabs button.active {
    background: #deefff;
    color: #0079c1;
    font-weight: 600;
}

#page-del-btn.btn-danger, #page-del-btn.btn-outline-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

#page-del-btn.btn-outline-danger {
    background-color: transparent !important;
    color: #dc3545 !important;
}

#page-del-btn.btn-danger:hover,
#page-del-btn.btn-outline-danger:hover {
    background-color: #a71d2a !important;
    border-color: #a71d2a !important;
    color: #fff !important;
}
.badge.up{background:#10b9811a;border:1px solid #10b981;color:#065f46}
.badge.degraded{background:#f59e0b1a;border:1px solid #f59e0b;color:#7c3e00}
.badge.down,.badge.unknown{background:#ef44441a;border:1px solid #ef4444;color:#7f1d1d}
.stat{font-weight:700;font-size:1.25rem}
.muted{opacity:.7;font-size:.85rem}

/* Die zwei Bereiche nebeneinander */
.workspace {
  display: flex;
  flex-direction: row;         /* sicherstellen, dass nichts vertikal stapelt */
  align-items: stretch;
  gap: 16px;                   /* etwas Luft dazwischen */
  flex-wrap: nowrap;           /* kein Umbruch */
}

/* Hauptbereich füllt den Platz */
.canvas-area {
  flex: 1 1 auto;
  min-width: 0;                /* wichtig, damit Inhalte nicht überbreit werden */
}

/* Sidebar mit fixer/berechenbarer Breite */
.sidebar {
  flex: 0 0 340px;             /* feste Breite, passt du nach Geschmack an */
  max-width: 40vw;             /* optional: begrenzen auf Viewport-Breite */
}

/* Bildbereich schön skalieren */
.image-container {
  position: relative;
  width: 100%;
  height: auto;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.background-image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* moderat kompakteres Ribbon */
.ribbon {
  padding: .4rem .75rem !important;     /* leicht weniger Außenabstand */
  gap: .75rem !important;               /* moderater Abstand */
  font-size: .95rem;                    /* etwas kleinere Grundschrift */
  flex-wrap: wrap;
}

/* Buttons etwas schlanker, aber nicht winzig */
.ribbon .btn {
  padding: .35rem .65rem !important;
  line-height: 1.3;
  font-size: .9rem !important;
}
.ribbon .btn i {
  font-size: 1.1rem;
  margin-right: .35rem !important;
}

/* Selects dezent kompakter */
.ribbon .form-select {
  padding: .25rem 1.5rem .25rem .5rem;
  height: calc(1.6em + .5rem + 2px);
  font-size: .9rem !important;
}

/* Dropdown-Menü enger, aber lesbar */
.ribbon .dropdown-menu .dropdown-item {
  padding: .35rem .65rem;
  font-size: .9rem;
}

/* kleine Lücken etwas reduzieren */
.ribbon .d-flex.gap-2 { 
  gap: .4rem !important; 
}
 /* Robuste, nicht-umfallerische Variante */
    .btn-delete {
      color: #fff !important;
      background-color: #dc3545 !important;   /* Bootstrap Danger */
      border-color: #dc3545 !important;
    }
    .btn-delete:hover {
      background-color: #bb2d3b !important;
      border-color: #b02a37 !important;
      color: #fff !important;
    }
    .btn-delete:focus {
      box-shadow: 0 0 0 .25rem rgba(225,83,97,.5) !important;
    }
    .btn-delete:active {
      background-color: #b02a37 !important;
      border-color: #a52834 !important;
      color: #fff !important;
    }
    .btn-delete:disabled, .btn-delete.disabled {
      background-color: #dc3545 !important;
      border-color: #dc3545 !important;
      color: #fff !important;
      opacity: .65;
    }
	
	.icon-action {
      background: transparent !important;
      border: 0 !important;
      padding: .25rem !important;
      line-height: 1 !important;
      cursor: pointer !important;
      vertical-align: middle !important;
    }
    .icon-action i {
      font-size: 1rem; /* klein & präzise */
    }
    .icon-action:focus {
      outline: none;
      box-shadow: 0 0 0 .2rem rgba(13,110,253,.25);
      border-radius: .25rem;
    }

    /* Stift: neutral, mit Hover-Akzent */
    .icon-edit { color: #495057 !important; }
    .icon-edit:hover { color: #0d6efd !important; }

    /* Rotes X: stabil gegen fremde Overrides */
    .icon-delete { color: #dc3545 !important; }
    .icon-delete:hover { color: #b02a37 !important; }
	
	.faq-search{position:relative;max-width:420px}
.faq-search .form-control{
  height:42px; padding-left:2.2rem;
  border-radius:12px; /* gleiche Rundung wie deine Cards */
}
.faq-search .bi-search{
  position:absolute; left:.65rem; top:50%; transform:translateY(-50%);
  color:#6c757d; pointer-events:none;
}
.faq-search .form-control:focus{
  box-shadow:0 0 0 .2rem rgba(35,70,163,.12);
  border-color:#cfd7e3;
}

