/* frontend.css - Data Source Manager OUT - Frontend */
/* Basierend auf Design des Schwester-Plugins "Data Source Manager ODS - Frontend (Neon Full) - Harmonized" */

/* Farbvariablen und Schrift */
:root {
  --bg-nearblack: #0a0f18;
  --bg-midnavy: #0f1330;
  --accent-orange: #f18500;
  --footer-orange: #f08a00;
  --white: #ffffff;
  --card-warm: #fcfcfc;
  --violet-top: #8b42ff;
  --blue-bottom: #2d7bff;
  --neon-magenta: #ff3fb8;
  --neon-cyan: #1fd6ff;
  --menu-darkgray: #2e2e2e;
  --footer-link-gray: #9aa0a6;
  --text-on-dark: #e6eefb;
  --neon-glow: 0 8px 40px rgba(139,66,255,0.12);
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --table-row-height: 46px;
  --table-font-size: 13px;
  --table-min-width: 900px;
}

/* Container und Layout */
.dsm-fullwidth-wrapper {
  background: linear-gradient(180deg, var(--bg-midnavy), rgba(15,19,48,0.95));
  color: var(--text-on-dark);
  padding: 28px 0;
}
.dsm-container {
  max-width: 1200px;
  margin: 0 auto 24px auto;
  font-family: var(--font-family);
  color: #0a0f18;
  background: var(--card-warm);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--neon-glow);
  box-sizing: border-box;
}

/* Überschriften */
.dsm-container h2 {
  margin-bottom: 12px;
  font-weight: 700;
  color: #0a0f18;
}

/* Buttons */
.dsm-button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-weight: 700;
  font-size: 12px;
  transition: transform .08s ease, box-shadow .12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.dsm-btn-orange {
  background: linear-gradient(180deg, var(--accent-orange), var(--footer-orange));
  color: #000 !important;
}
.dsm-btn-neonline {
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  color: #000 !important;
}

/* Kleine Hilfstexte */
.dsm-small {
  font-size: 11px;
  color: #666666;
}

/* Tabellen */
table.widefat {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  background: var(--card-warm);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10,15,24,0.02);
}
table.widefat thead {
  background: linear-gradient(180deg,#fbfdff,#f1f7ff);
}
table.widefat th,
table.widefat td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #0a0f18;
  vertical-align: middle;
  text-align: left;
  line-height: 1.25;
  height: auto;
  min-height: var(--table-row-height);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tabellenüberschrift linksbündig */
.dsm-th-left {
  text-align:left;
  font-weight:700;
}

/* Hover-Effekt auf Tabellenzeilen */
table.widefat tbody tr {
    transition: background-color .12s ease;
}
table.widefat tbody tr:hover {
    background: linear-gradient(90deg, rgba(255,63,184,0.03), rgba(31,214,255,0.02));
}

/* Inputs (Textfelder) */
.dsm-input-manage,
.dsm-input-summary {
    background:#fffimportant    color:#000 !important    border-radius:8px;
 border:1px solid rgba(0,0,,0.08);
   :6px 8px    width:100%;
 box-sizing:border-box;
    font-size:13px;
}

/ Konsierungs-Input */
.dsm-consolidate-input {
    width:%;
    max-width100%;
    min-width:220;
    padding:8px 10;
    border-radius:8px    border:1px solid rgba(0,0,0,0.08);
}

/* Hervorgehobene gefüllte Felder */
.dsm-filled {
    background-color:#fffefb !important;
}

/* Scrollbare Bereiche mit Neon-Scrollbar */
.dsm-table-wrap,
.dsm-table-scroll {
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touche; /* iOS Smooth Scroll */
    padding-bottom:8px;
    background-color:transparent;
}

.dsm-table-wrap table,
.dsm-table-scroll table {
    min-width: var(--table-min-width);
}

/* Neon Scrollbar für Webkit Browser */
.neon-scroll::-webkit-scrollbar {
    height:12px; 
    background-color:#f9f9f9; 
}
.neon-scroll::-webkit-scrollbar-thumb {
    background-image: linear-gradient(90deg,var(--neon-magenta),var(--neon-cyan));
    border-radius:999px; 
    box-shadow:0 6px 20px rgba(31,214,255,0.06);
}

/* Textkürzungen in Tabellenzellen */
table.widefat td { 
    white-space: nowrap; 
    overflow:hidden; 
    text-overflow:ellipsis; 
}

/* Styling für Import bestehende Datei Block */
#dsom-import-existing-block-out {
    border:1px dashed rgba(0,0,0,0.06);
    padding:10px; 
    border-radius:8px; 
    background:#fff; 
    margin-top:8px; 
}
#dsom-import-existing-block-out select {
    max-width:520px; 
    padding:8px; 
    border-radius:6px; 
    border:1px solid rgba(0,0,0,0.06);
}

/* Bereich für Import Vorschau */
#dsom-preview-area-out {
    margin-top:12px;
}

/* Refresh Button */
#dsom-refresh-export-files-out {
    display: inline-block !important;
    margin-left: 10px;
}

/* Erfolg und Fehler-Meldungen */
.dsm-msg-ok {
    background:#ecfdf5; 
    border-left:4px solid #10b981; 
    padding:8px 10px; 
    border-radius:6px; 
    color:#065f46; 
}
.dsm-msg-err {
    background:#fff1f2; 
    border-left:4px solid #ef4444; 
    padding:8px 10px; 
    border-radius:6px; 
    color:#7f1d1d; 
}

/* Autocomplete Liste für Konsolidierung */
.dsm-autocomplete-list {
  position: absolute;
  z-index: 99999;
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 10px 40px rgba(31,214,255,0.06),
    0 6px 20px rgba(139,66,255,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.dsm-autocomplete-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #0a0f18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsm-autocomplete-item:hover,
.dsm-autocomplete-item.active {
  background-image:
    linear-gradient(90deg,
    rgba(255,63,184,0.06),
    rgba(31,214,255,0.04));
}

/* Zeilen-Aktionsbuttons */
.dsm-row-actions .dsm-button {
    padding:6px 8px; 
    font-size:12px; 
    border-radius:8px; 
}

/* Neon Separator Linien */
.dsm-sep-neon {
    height:6px; 
    border:none; 
    border-radius:6px; 
    background-image:
        linear-gradient(90deg,var(--neon-magenta),var(--neon-cyan));
    box-shadow:
        0 6px 30px rgba(31,214,255,0.06);
}

/* Fokus-Rahmen für Eingabefelder und Buttons */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline:3px solid rgba(45,123,255,0.14);
    outline-offset:2px;
}

/* Responsive Anpassungen */
@media (max-width :1400px) {
   table.widefat th,
   table.widefat td,
   .dsm-table-smalltext table,
   .dsm-table-smalltext th,
   .dsm-table-smalltext td{
       font-size :12px !important ;
   }
}

@media (max-width :900px) {

   table.widefat th:nth-child(3),
   table.widefat td:nth-child(3),
   table.widefat th:nth-child(4),
   table.widefat td:nth-child(4),
   .dsm-summary-full th:nth-child(4),
   .dsm-summary-full td:nth-child(4){
       width :auto !important ;
       min-width :260px !important ;
       max-width :none !important ;
       white-space :normal !important ;
       word-break :break-word ;
   }
}

/* Spaltenbreiten-Anpassungen für große Bildschirme (optional) */
.dsm-fullwidth-inner table.widefat th:nth-child(3),
.dsm-fullwidth-inner table.widefat td:nth-child(3) {
   width :480px !important ;
   min-width :360px !important ;
   white-space :normal !important ;
   word-break :break-word ;
}

.dsm-fullwidth-inner table.widefat th:nth-child(4),
.dsm-fullwidth-inner table.widefat td:nth-child(4) {
   width :720px !important ;
   min-width :520px !important ;
   white-space :normal !important ;
   word-break :break-word ;
}

/* Summary Tabelle Scan Template Spalte */
.dsm-summary-full th:nth-child(4),
.dsm-summary-full td:nth-child(4) {
   width :480px !important ;
   min-width :360px !important ;
   white-space :normal !important ;
   word-break :break-word ;
}

/* Export Vorschautabelle Konsistenz */
.dsm-export-table td,
.dsm-export-table th {
   white-space :nowrap ;
   overflow :hidden ;
   text-overflow :ellipsis ;
}

/* Bulk apply Eingabefelder und Button Styling */
#dsom-bulk-source-type-out,
#dsom-bulk-data-source-name-out {
   padding :8px 10px ;
   border-radius :8px ;
   border :1px solid rgba(0,0,0,0.08) ;
   background-color :#fff ;
   margin-right :6px ;
   min-width :160px ;
}
#dsom-apply-to-rows-out {
   padding :8px 12px ;
   border-radius :999px ;
   font-weight :700 ;
}