/* Admin & Login consolidated styles */
/* Reset & general */
*, *::before, *::after { box-sizing: border-box; }
html,body{margin:0;height:100%;font-family:Inter, 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial;}
:root{ --bg:#0f1111; --surface:#111317; --muted:#9aa3b2; --text:#e6eef9; --accent:#ffb300; --success:#4caf50; --danger:#e53935; --card-bg:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02)); --shadow: 0 6px 18px rgba(0,0,0,0.6); }
body{background:var(--bg);color:var(--text);padding:28px}

/* Login form helpers */
form.login-form { max-width:360px; margin:40px auto; background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02)); padding:20px; border-radius:10px; box-shadow: 0 8px 30px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.03);}
form.login-form label{display:block;margin-bottom:6px;color:var(--muted)}
form.login-form input{width:100%;padding:10px;margin:6px 0;border-radius:6px;border:1px solid #444;background:#111;color:var(--text)}
form.login-form button{width:100%;padding:10px;border-radius:6px;border:none;background:var(--success);color:#fff;font-weight:700}

/* App layout */
.app { display:flex; min-height:calc(100vh - 56px); gap:20px; }
.sidebar{
  width:280px;
  background:linear-gradient(165deg, rgba(18,20,26,0.98), rgba(12,14,18,0.98));
  padding:0;
  border-right:1px solid rgba(var(--glow-rgb-1, 255,179,0),0.15);
  box-shadow: 4px 0 32px rgba(0,0,0,0.5), inset -1px 0 2px rgba(var(--glow-rgb-1, 255,179,0),0.05);
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}
.sidebar::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:200px;
  background:radial-gradient(ellipse at top, rgba(var(--glow-rgb-1, 255,179,0),0.08), transparent);
  pointer-events:none;
  z-index:0;
}
.sidebar .brand{
  padding:28px 20px 24px;
  background:linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0),0.12), rgba(var(--glow-rgb-1, 255,179,0),0.04));
  border-bottom:1px solid rgba(var(--glow-rgb-1, 255,179,0),0.15);
  display:flex;
  align-items:center;
  gap:14px;
  position:relative;
  z-index:1;
  box-shadow:0 4px 16px rgba(0,0,0,0.3);
}
.sidebar .brand::after{
  content:'';
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(var(--glow-rgb-1, 255,179,0),0.4), transparent);
}
.sidebar .brand > div:first-child{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0),0.15), rgba(var(--glow-rgb-1, 255,179,0),0.05));
  border-radius:12px;
  border:1px solid rgba(var(--glow-rgb-1, 255,179,0),0.2);
  box-shadow:0 4px 12px rgba(var(--glow-rgb-1, 255,179,0),0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow:hidden;
}
.sidebar .brand > div:first-child img{
  filter:drop-shadow(0 2px 8px rgba(var(--icon-shadow-rgb, 255,179,0),0.6));
}
.sidebar .brand > div:last-child{
  flex:1;
}
.sidebar .brand > div:last-child > div{
  font-size:20px;
  font-weight:900;
  letter-spacing:0.3px;
  color:var(--accent);
  text-shadow:0 2px 12px rgba(var(--icon-shadow-rgb, 255,179,0),0.5);
  line-height:1.2;
}
.sidebar .brand small{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:rgba(var(--glow-rgb-1, 255,179,0),0.5);
  font-weight:700;
  display:block;
  margin-top:4px;
}
.sidebar .menu{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:20px 16px;
  position:relative;
  z-index:1;
}
.sidebar .menu .btn{
  justify-content:flex-start;
  padding:14px 18px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border:1px solid transparent;
  background:transparent;
  position:relative;
  overflow:hidden;
  color:rgba(255,255,255,0.75);
}
.sidebar .menu .btn::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:var(--accent);
  transform:scaleY(0);
  transition:transform 0.3s ease;
}
.sidebar .menu .btn:hover{
  background:linear-gradient(90deg, rgba(var(--glow-rgb-1, 255,179,0),0.12), rgba(var(--glow-rgb-1, 255,179,0),0.06));
  border-color:rgba(var(--glow-rgb-1, 255,179,0),0.25);
  transform:translateX(6px);
  box-shadow: 0 6px 20px rgba(var(--glow-rgb-1, 255,179,0),0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  color:rgba(255,255,255,0.95);
}
.sidebar .menu .btn:hover::before{
  transform:scaleY(1);
}
.sidebar .menu .btn:active{
  transform:translateX(4px) scale(0.98);
}
.sidebar .menu .btn i{
  width:24px;
  text-align:center;
  color:var(--accent);
  font-size:17px;
  filter:drop-shadow(0 2px 6px rgba(var(--icon-shadow-rgb, 255,179,0),0.5));
  transition:all 0.3s ease;
  margin-right:2px;
}
.sidebar .menu .btn:hover i{
  filter:drop-shadow(0 3px 12px rgba(var(--icon-shadow-rgb, 255,179,0),0.8));
  transform:scale(1.1);
}
.sidebar .kicker{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-weight:800;
  color:rgba(var(--glow-rgb-1, 255,179,0),0.5);
  margin:24px 0 12px;
  padding:0 16px;
  position:relative;
  z-index:1;
}
.sidebar hr{
  border:none;
  border-top:1px solid rgba(var(--glow-rgb-1, 255,179,0),0.1);
  margin:16px 16px;
  box-shadow:0 1px 0 rgba(var(--glow-rgb-1, 255,179,0),0.05);
  position:relative;
  z-index:1;
}
.sidebar #changedFilesList{
  max-height:280px;
  overflow-y:auto;
  padding:12px 16px;
  background:linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
  border-radius:12px;
  border:1px solid rgba(var(--glow-rgb-1, 255,179,0),0.08);
  font-size:12px;
  line-height:1.8;
  margin:0 16px 20px;
  position:relative;
  z-index:1;
  box-shadow:inset 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar #changedFilesList li{
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,0.02);
  transition:color 0.2s ease;
}
.sidebar #changedFilesList li:last-child{
  border-bottom:none;
}
.sidebar #changedFilesList li:hover{
  color:var(--accent);
}
.sidebar #changedFilesList::-webkit-scrollbar{
  width:8px;
}
.sidebar #changedFilesList::-webkit-scrollbar-track{
  background:rgba(0,0,0,0.3);
  border-radius:10px;
}
.sidebar #changedFilesList::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(var(--glow-rgb-1, 255,179,0),0.4), rgba(var(--glow-rgb-1, 255,179,0),0.2));
  border-radius:10px;
  border:2px solid rgba(0,0,0,0.3);
}
.sidebar #changedFilesList::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, rgba(var(--glow-rgb-1, 255,179,0),0.6), rgba(var(--glow-rgb-1, 255,179,0),0.3));
}
.sidebar #changedFilesList::-webkit-scrollbar-thumb:hover{
  background:rgba(var(--glow-rgb-1, 255,179,0),0.5);
}
.content{flex:1;padding:28px;max-width:1200px;margin:0 auto;width:100%}
.header{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:18px}
.brand{display:flex;gap:12px;align-items:center;font-weight:700;color:var(--accent)}
.brand > span{text-shadow:0 2px 10px rgba(var(--icon-shadow-rgb, 255,179,0),0.4)}
.brand img{filter:drop-shadow(0 2px 8px rgba(var(--icon-shadow-rgb, 255,179,0),0.5))}
.brand small{color:var(--muted);font-weight:500}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;background:transparent;border:1px solid rgba(255,255,255,0.04);cursor:pointer;color:var(--text);font-weight:600;transition:all 0.2s ease}
.btn.primary{background:var(--success);border-color:rgba(0,0,0,0.2);color:#fff;box-shadow:0 4px 12px rgba(76,175,80,0.3)}
.btn.primary:hover{box-shadow:0 6px 20px rgba(76,175,80,0.5);transform:translateY(-2px)}
.btn.warn{background:var(--danger);color:#fff;border-color:rgba(0,0,0,0.2);box-shadow:0 4px 12px rgba(229,57,53,0.3)}
.btn.warn:hover{box-shadow:0 6px 20px rgba(229,57,53,0.5);transform:translateY(-2px)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.03)}
.btn.ghost:hover{background:rgba(var(--glow-rgb-1, 255,179,0),0.05);border-color:rgba(var(--glow-rgb-1, 255,179,0),0.2);box-shadow:0 4px 12px rgba(var(--glow-rgb-1, 255,179,0),0.15)}

/* Card layout */
.cards{display:grid;grid-template-columns:repeat(12,1fr); gap:16px;align-items:start}
.card{background:var(--card-bg);border:1px solid rgba(255,255,255,0.03);box-shadow:var(--shadow);border-radius:12px;padding:18px;display:flex;flex-direction:column;min-height:100px;position:relative;transition:all 0.3s ease}
.card:hover{border-color:rgba(var(--glow-rgb-1, 255,179,0),0.15);box-shadow:0 8px 24px rgba(0,0,0,0.7), 0 0 20px rgba(var(--glow-rgb-1, 255,179,0),0.1);transform:translateY(-2px)}
.card h3{margin:0 0 8px;color:var(--accent);font-size:15px;text-shadow:0 2px 8px rgba(var(--icon-shadow-rgb, 255,179,0),0.3);padding-right:50px;}
.card .value{font-size:26px;font-weight:700;color:var(--text);margin-bottom:6px}
.card .meta{font-size:13px;color:var(--muted)}
.card .card-actions{position:absolute;right:12px;top:12px;display:flex;gap:8px;align-items:center;z-index:150;pointer-events:auto;}
.drag-handle{cursor:grab;padding:6px;border-radius:6px;border:1px solid rgba(255,255,255,0.02);background:transparent;color:var(--muted);pointer-events:auto;position:relative;z-index:101;}
.drag-handle:active{cursor:grabbing}

/* Patchlist card specific styles */
.card[data-card-id="patchlist-card"] .value{font-size:18px !important;padding-right:50px;}

/* Size variants for 12-column grid */
.card.klein{grid-column:span 3}
.card.mittel{grid-column:span 4}
.card.gross,.card.large{grid-column:span 5}

/* Responsive rules */
@media (max-width: 1000px){
  .card.klein{grid-column:span 4}
  .card.mittel{grid-column:span 6}
  .card.gross{grid-column:span 8}
}
@media (max-width: 700px){
  .sidebar{display:none}
  .card{grid-column:span 12}
}

/* Toasts */
.toasts{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:10px;z-index:2000}
.toast{min-width:220px;padding:12px 14px;border-radius:10px;color:#071018;background:var(--text);box-shadow:0 6px 18px rgba(0,0,0,0.5);opacity:1;transition:opacity .3s ease, transform .3s ease}
.toast.success{background:linear-gradient(90deg,var(--success),#2e7d32);color:#fff}
.toast.error{background:linear-gradient(90deg,var(--danger),#c62828);color:#fff}
.toast.info{background:linear-gradient(90deg,#1976d2,#1565c0);color:#fff}

/* small helpers */
.muted{color:var(--muted)}
.flex{display:flex;gap:8px;align-items:center}
.space-right{margin-right:8px}
.card.dragging{opacity:0.6;transform:scale(0.98)}
.reset-layout{background:#222;border:1px solid rgba(255,255,255,0.03);color:var(--text);padding:8px;border-radius:8px}
.kicker{font-size:13px;color:var(--muted)}

/* debug badges */
.debug-badge{position:absolute;right:12px;bottom:12px;background:rgba(255,193,7,0.95);color:#000;padding:4px 8px;border-radius:999px;font-weight:700;display:none}
body.debug-mode .debug-badge{display:inline-block}
body.debug-mode .card{outline:1px dashed rgba(255,193,7,0.12)}

/* drag-and-drop helpers */
.cards .placeholder { height: 12px; border: 2px dashed rgba(255,255,255,0.06); margin: 8px 0; border-radius:8px; }

/* small card tweaks */
.card .cta { margin-top:auto; display:inline-block; text-decoration:none; padding:8px 12px; border-radius:8px; background:#4caf50; color:#fff; border:none; cursor:pointer; font-size:13px; transition:all 0.2s ease; box-shadow:0 3px 10px rgba(76,175,80,0.3); }
.card .cta:hover { box-shadow:0 5px 18px rgba(76,175,80,0.5); transform:translateY(-2px); }
.card .cta.secondary { background:#1976d2; box-shadow:0 3px 10px rgba(25,118,210,0.3); }
.card .cta.secondary:hover { box-shadow:0 5px 18px rgba(25,118,210,0.5); transform:translateY(-2px); }

/* utility */
.card small { color:#9e9e9e; }

/* EasyMDE (CodeMirror) dark-mode overrides */
.EasyMDEContainer {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
}
.editor-toolbar {
  background: #1a1d23 !important;
  color: var(--text) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  opacity: 1 !important;
}
.editor-statusbar, .editor-preview, .editor-preview-side {
  background: var(--surface) !important;
  color: var(--text) !important;
}
.editor-toolbar a, .editor-toolbar button {
  color: var(--text) !important;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}
.editor-toolbar a:hover, .editor-toolbar button:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.editor-toolbar button.active, .editor-toolbar button:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.editor-toolbar a.active {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.editor-toolbar a.active i.fa, .editor-toolbar a.active i.fas {
  color: #fff !important;
}
.CodeMirror { background: var(--surface); color: var(--text); height: auto; min-height: 180px; }
.CodeMirror-scroll { background: transparent; }
.CodeMirror * { color: var(--text) !important; }
.CodeMirror pre { color: var(--text) !important; }
.CodeMirror-cursor { border-left: 1px solid var(--accent) !important; }
.editor-preview { color: var(--text); background: var(--surface); }
#markdownEditor { background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,0.03); padding:12px; border-radius:8px; }
.editor-statusbar { color: var(--muted); background: transparent; border-top: 1px dashed rgba(255,255,255,0.02); }
.editor-preview a { color: var(--accent); }
.editor-toolbar a i.fa, .editor-toolbar a i.fas { color: var(--text); font-size:14px; }
.editor-toolbar a i { line-height:1; }
.editor-toolbar a[title]::after { content: attr(title); display:none; font-size:12px; color:var(--muted); margin-left:6px; }
.editor-toolbar a:hover[title]::after { display:inline-block; }

/* EasyMDE Fullscreen Mode */
.CodeMirror-fullscreen {
  background: var(--bg) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  z-index: 9999 !important;
}

.CodeMirror-fullscreen .CodeMirror-scroll {
  min-height: 100% !important;
  background: var(--bg) !important;
}

/* Emoji Picker */
.emoji-picker-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 10000;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.2);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* Pinned Patchlogs */
.patchlog-item.pinned {
    position: relative;
}

.patchlog-item.pinned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,179,0,0.03) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 4px;
}

.editor-toolbar.fullscreen {
  background: #1a1d23 !important;
  border: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  opacity: 1 !important;
}

.EasyMDEContainer.fullscreen {
  background: var(--bg) !important;
  position: fixed !important;
  top: 50px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9998 !important;
  border: none !important;
  border-radius: 0 !important;
}

.editor-statusbar.fullscreen {
  background: var(--surface) !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}

.editor-preview-side {
  background: var(--bg) !important;
  border-left: 1px solid rgba(255,255,255,0.05) !important;
}

/* Side-by-side mode */
.CodeMirror-sided {
  width: 50% !important;
}

.editor-preview-active-side {
  background: var(--bg) !important;
}

/* Icon spacing for buttons */
.btn i { margin-right:8px; font-size:14px; }
.btn i.fa { line-height:1; }

/* Small tweak to ensure toolbar icons look visible on dark backgrounds */
.editor-toolbar { box-shadow: none; }

/* Settings cards (modern card-based layout) */
.settings-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    overflow: hidden;
}

.settings-card-header {
    background: linear-gradient(90deg, rgba(255,179,0,0.08), rgba(255,179,0,0.02));
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 20px 24px;
}

.settings-card-header h3 {
    margin: 0 0 6px 0;
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(var(--glow-rgb-1, 255,179,0), 0.3);
}

.settings-card-header h3 i {
    font-size: 20px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(var(--glow-rgb-1, 255,179,0), 0.4));
}

.settings-card-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.settings-card-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.3);
    box-shadow: 0 0 12px rgba(255,179,0,0.2), inset 0 1px 3px rgba(0,0,0,0.3);
}

.form-group input[type="text"]::placeholder {
    color: rgba(154,163,178,0.5);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.form-group code {
    background: rgba(255,179,0,0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.status-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 13px;
    display: none;
}

.status-message:not(:empty) {
    display: block;
}

/* Settings page specific tweaks */
#settings h1 {
    margin-bottom: 8px;
}

#settings .kicker {
    margin-bottom: 24px;
}

/* Sticky save bar at bottom of settings */
.settings-save-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,179,0,0.12), rgba(255,179,0,0.08));
    border: 1px solid rgba(255,179,0,0.2);
    border-radius: 12px;
    padding: 0;
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,179,0,0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.settings-save-content {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-save-content > div:first-child {
    display: flex;
    align-items: center;
}

.settings-save-content strong {
    color: var(--accent);
    font-size: 16px;
}

.settings-save-bar .status-message {
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0 0 12px 12px;
}

/* Enhance primary button in save bar */
.settings-save-bar .btn.primary {
    background: linear-gradient(135deg, var(--success), #2e7d32);
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
    font-size: 15px;
    padding: 10px 20px;
}

.settings-save-bar .btn.primary:hover {
    box-shadow: 0 6px 16px rgba(76,175,80,0.4);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .settings-save-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .settings-save-content > div:first-child {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Shake animation for unsaved changes warning */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.5) !important;
}

/* User management layout */
.user-management-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.user-create-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    position: sticky;
    top: 20px;
}

.user-create-card label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .user-management-container {
        grid-template-columns: 1fr;
    }
    
    .user-create-card {
        position: static;
    }
}

/* User table styling */
.user-table-wrapper {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

#usersTable {
    width: 100%;
    border-collapse: collapse;
}

#usersTable thead {
    background: linear-gradient(90deg, rgba(var(--table-header-rgb, 255,179,0),0.08), rgba(var(--table-header-rgb, 255,179,0),0.02));
}

#usersTable th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#usersTable td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text);
    font-size: 14px;
}

#usersTable tbody tr {
    transition: background 0.2s ease;
}

#usersTable tbody tr:hover {
    background: rgba(var(--table-hover-rgb, 255,179,0),0.04);
}

#usersTable tbody tr:last-child td {
    border-bottom: none;
}

#usersTable .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

#usersTable select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.3);
    color: var(--text);
    font-size: 13px;
}

/* File Upload Drop Zone */
.upload-section-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 24px;
}

.upload-drop-area {
    display: flex;
    flex-direction: column;
}

.drop-zone {
    border: 2px dashed rgba(255,179,0,0.3);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,179,0,0.02), rgba(255,179,0,0.05));
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: rgba(255,179,0,0.5);
    background: linear-gradient(180deg, rgba(255,179,0,0.05), rgba(255,179,0,0.08));
    box-shadow: 0 4px 16px rgba(255,179,0,0.1);
}

.drop-zone.drag-over {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(255,179,0,0.1), rgba(255,179,0,0.15));
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(255,179,0,0.2);
}

.upload-files-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    max-height: 320px;
}

.upload-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 12px;
}

.upload-files-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 8px rgba(255,179,0,0.3);
}

.upload-files-header h3 i {
    filter: drop-shadow(0 2px 6px rgba(255,179,0,0.4));
}

.upload-count {
    background: rgba(255,179,0,0.15);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.upload-files-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-y: auto;
    max-height: 240px;
    padding-right: 4px;
}

.upload-files-grid::-webkit-scrollbar {
    width: 6px;
}

.upload-files-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.upload-files-grid::-webkit-scrollbar-thumb {
    background: rgba(255,179,0,0.3);
    border-radius: 10px;
}

.upload-files-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255,179,0,0.5);
}

.upload-files-grid:empty::before {
    content: 'Keine Dateien hochgeladen';
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 40px 20px;
}

/* Cancel buttons */
.btn-cancel-upload,
.btn-cancel-all {
    background: transparent;
    border: 1px solid rgba(229,57,53,0.3);
    color: var(--danger);
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel-upload {
    opacity: 0.7;
}

.btn-cancel-upload:hover,
.btn-cancel-all:hover {
    background: rgba(229,57,53,0.15);
    border-color: var(--danger);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(229,57,53,0.3);
}

.btn-cancel-all {
    padding: 5px 8px;
}

@media (max-width: 1100px) {
    .upload-section-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-files-card {
        max-height: 320px;
    }
}

#uploadStatus {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

#uploadStatus.success {
    border-color: var(--success);
    background: rgba(76,175,80,0.1);
    color: var(--success);
}

#uploadStatus.error {
    border-color: var(--danger);
    background: rgba(229,57,53,0.1);
    color: var(--danger);
}

/* Upload progress bars */
.upload-file-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.upload-file-item:hover {
    border-color: rgba(255,179,0,0.15);
    background: rgba(255,255,255,0.03);
}

.upload-file-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-file-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.upload-file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-file-size {
    font-size: 11px;
    color: var(--muted);
}

.upload-file-percent {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
}

.upload-file-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    overflow: hidden;
}

.upload-file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8c00);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 8px rgba(255,179,0,0.4);
}

.upload-file-progress-bar.complete {
    background: linear-gradient(90deg, var(--success), #2e7d32);
    box-shadow: 0 0 8px rgba(76,175,80,0.4);
}

.upload-file-progress-bar.error {
    background: linear-gradient(90deg, var(--danger), #c62828);
    box-shadow: 0 0 8px rgba(229,57,53,0.4);
}

/* File Browser */
.breadcrumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item:hover {
    background: rgba(255,179,0,0.1);
    color: var(--accent);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--muted);
}

.file-list {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s ease;
    cursor: pointer;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: rgba(255,179,0,0.04);
}

.file-item.directory {
    font-weight: 600;
}

.file-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
    margin-right: 12px;
}

.file-icon.dir {
    color: var(--accent);
}

.file-icon.file {
    color: var(--text);
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name {
    color: var(--text);
    font-size: 14px;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
}

.file-actions {
    display: flex;
    gap: 6px;
    margin-left: 16px;
}

.file-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .file-actions {
        margin-left: 0;
    }
}

/* ============================================
   MODERN DESIGN SYSTEM (body.modern-design)
   ============================================ */

body.modern-design {
    background: linear-gradient(135deg, #0a0e14 0%, #0f1419 50%, #0a0e14 100%);
    background-attachment: fixed;
}

body.modern-design::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--glow-rgb-1, 255,179,0), 0.03), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--glow-rgb-2, 255,179,0), 0.02), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.modern-design .app {
    position: relative;
    z-index: 1;
}

/* Modern Content Area */
body.modern-design .content {
    padding: 32px;
    max-width: 1400px;
}

/* Modern Header */
body.modern-design .header {
    background: linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0), 0.08), rgba(var(--glow-rgb-1, 255,179,0), 0.03));
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.15);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 32px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

body.modern-design .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(var(--glow-rgb-1, 255,179,0), 0.5), 
        transparent);
}

body.modern-design .header .brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

body.modern-design .header .brand span {
    background: linear-gradient(135deg, var(--accent), rgba(var(--glow-rgb-1, 255,179,0), 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Buttons */
body.modern-design .btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.modern-design .btn.primary {
    background: linear-gradient(135deg, var(--success), #2e7d32);
    box-shadow: 
        0 6px 20px rgba(76,175,80,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

body.modern-design .btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(76,175,80,0.6),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

body.modern-design .btn.ghost {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.05);
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.15);
    backdrop-filter: blur(10px);
}

body.modern-design .btn.ghost:hover {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.12);
    border-color: rgba(var(--glow-rgb-1, 255,179,0), 0.3);
    box-shadow: 
        0 6px 24px rgba(var(--glow-rgb-1, 255,179,0), 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

body.modern-design .btn.warn {
    background: linear-gradient(135deg, var(--danger), #c62828);
    box-shadow: 
        0 6px 20px rgba(229,57,53,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Modern Cards */
body.modern-design .cards {
    gap: 24px;
}

body.modern-design .card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.1);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

body.modern-design .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--glow-rgb-1, 255,179,0), 0.4),
        transparent);
}

body.modern-design .card:hover {
    border-color: rgba(var(--glow-rgb-1, 255,179,0), 0.3);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 48px rgba(0,0,0,0.6),
        0 0 40px rgba(var(--glow-rgb-1, 255,179,0), 0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

body.modern-design .card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(var(--glow-rgb-1, 255,179,0), 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.modern-design .card h3 i {
    font-size: 18px;
    filter: drop-shadow(0 2px 8px rgba(var(--icon-shadow-rgb, 255,179,0), 0.6));
}

body.modern-design .card .value {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

body.modern-design .card .meta {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 4px;
}

body.modern-design .card .meta code {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: rgba(var(--glow-rgb-1, 255,179,0), 0.9);
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.2);
}

body.modern-design .card .cta,
body.modern-design .card .cta.secondary {
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0), 0.15), rgba(var(--glow-rgb-1, 255,179,0), 0.08));
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.3);
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(var(--glow-rgb-1, 255,179,0), 0.15);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

body.modern-design .card .cta:hover,
body.modern-design .card .cta.secondary:hover {
    background: linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0), 0.25), rgba(var(--glow-rgb-1, 255,179,0), 0.12));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--glow-rgb-1, 255,179,0), 0.3);
    border-color: rgba(var(--glow-rgb-1, 255,179,0), 0.5);
}

body.modern-design .card .cta:hover {
    background: linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0), 0.3), rgba(var(--glow-rgb-1, 255,179,0), 0.15));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--glow-rgb-1, 255,179,0), 0.35);
}

/* Modern Patchlist Section */
body.modern-design #dashboard h1,
body.modern-design #patchlist h1,
body.modern-design #DiscordPatchLogs h1,
body.modern-design #fileBrowser h1,
body.modern-design #settings h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

body.modern-design .kicker {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 32px;
}

/* Modern Forms & Inputs */
body.modern-design input[type="text"],
body.modern-design input[type="date"],
body.modern-design input[type="time"],
body.modern-design input[type="url"],
body.modern-design input[type="file"],
body.modern-design select,
body.modern-design textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

body.modern-design input:focus,
body.modern-design select:focus,
body.modern-design textarea:focus {
    outline: none;
    border-color: rgba(var(--glow-rgb-1, 255,179,0), 0.4);
    background: rgba(255,255,255,0.05);
    box-shadow: 
        0 0 0 3px rgba(var(--glow-rgb-1, 255,179,0), 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Modern Toasts */
body.modern-design .toast {
    border-radius: 16px;
    padding: 16px 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Modern Settings Cards */
body.modern-design .settings-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    overflow: hidden;
}

body.modern-design .settings-card-header {
    background: linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0), 0.08), rgba(var(--glow-rgb-1, 255,179,0), 0.03));
    border-bottom: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.15);
    padding: 24px 28px;
}

body.modern-design .settings-card-header h3 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), rgba(var(--glow-rgb-1, 255,179,0), 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Tab Navigation */
body.modern-design .settings-tab {
    border-radius: 12px 12px 0 0;
    background: rgba(255,255,255,0.02);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

body.modern-design .settings-tab:hover {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.08);
}

body.modern-design .settings-tab.active {
    background: linear-gradient(135deg, rgba(var(--glow-rgb-1, 255,179,0), 0.15), rgba(var(--glow-rgb-1, 255,179,0), 0.08));
    border-bottom-color: var(--accent);
    box-shadow: 0 4px 16px rgba(var(--glow-rgb-1, 255,179,0), 0.2);
}

/* Modern Dashboard Specific */
body.modern-design #quickActionsContent,
body.modern-design #statsContent,
body.modern-design #webhookStatusContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.modern-design #quickActionsContent .btn,
body.modern-design #webhookStatusContainer > div {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.modern-design #quickActionsContent .btn.primary {
    background: linear-gradient(135deg, var(--success), #2e7d32);
    border: none;
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
    color: #fff;
}

body.modern-design #quickActionsContent .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(76,175,80,0.6);
}

body.modern-design #quickActionsContent .btn.ghost:hover {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.08);
    border-color: rgba(var(--glow-rgb-1, 255,179,0), 0.3);
    transform: translateX(4px);
}

body.modern-design #webhookStatusContainer > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.modern-design .card.groß .value,
body.modern-design .card.large .value {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    white-space: pre-line;
    line-height: 1.6;
    background: none;
    -webkit-text-fill-color: initial;
}

body.modern-design .card-actions {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

body.modern-design .card:hover .card-actions {
    opacity: 1;
}

body.modern-design .drag-handle {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.05);
    border: 1px solid rgba(var(--glow-rgb-1, 255,179,0), 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.modern-design .drag-handle:hover {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.12);
    border-color: rgba(var(--glow-rgb-1, 255,179,0), 0.3);
}

/* Card Delete Icon */
.card-delete-icon {
    position: relative;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-delete-icon:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.5);
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.4);
}

.card-delete-icon i {
    pointer-events: none;
}

/* Toolbox Cards Styles */
#toolboxCards {
    pointer-events: all !important;
}

#toolboxCards .card {
    cursor: grab;
    transition: all 0.2s ease;
    pointer-events: all !important;
    position: relative;
    z-index: 1;
}

#toolboxCards .card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 2;
}

#toolboxCards .card.dragging {
    opacity: 0.8;
    cursor: grabbing;
    z-index: 10000;
    pointer-events: none;
}

/* Section Content Drop Zone Highlight */
.section-content.cards:not(:has(.card)) {
    position: relative;
    min-height: 150px;
}

.section-content.cards:not(:has(.card))::after {
    content: 'Ziehe Karten hierher';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(var(--glow-rgb-1, 255,179,0), 0.4);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    z-index: 0;
}

.section-content.cards {
    pointer-events: all !important;
    z-index: 1;
}

/* Smooth scrollbar for toolbox */
#toolboxCards::-webkit-scrollbar {
    width: 6px;
}

#toolboxCards::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#toolboxCards::-webkit-scrollbar-thumb {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.3);
    border-radius: 3px;
}

#toolboxCards::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--glow-rgb-1, 255,179,0), 0.5);
}

