
.admin-search-box { display: flex; gap: 10px; margin: 20px 0; max-width: 600px; align-items: center; position: relative; }
.admin-search-box input { padding: 10px; border: 1px solid #ccc; border-radius: 4px; flex-grow: 1; }
.search-indicator { position: absolute; right: 120px; top: 50%; transform: translateY(-50%); font-size: 0.8em; color: #666; display: none; }
#admin-result-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-top:20px; display:none; }
#admin-result-table th, #admin-result-table td { text-align: left; padding: 12px; border-bottom: 1px solid #ddd; }
.btn-action-group { display: flex; gap: 8px; align-items: center; justify-content: center; }
.btn-reset-group { display: flex; flex-direction: column; gap: 5px; align-items: center; width: 200px; align-items: stretch; }

/* Status UI */
.status-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-size:12px;border:1px solid #ccc}
.status-active{background:#e7f7ec;border-color:#b6e2c1;color:#1d6b2f}
.status-inactive{background:#fdeaea;border-color:#f2b8b5;color:#8a1f1a}
.status-toggle{display:flex;flex-direction:column;gap:6px;align-items:center}
.delete-prefix-label{font-size:11px;color:#555;display:flex;align-items:center;gap:4px;cursor:pointer;user-select:none;white-space:nowrap;}
.delete-prefix-label input[type="checkbox"]{cursor:pointer;margin:0;}
.delete-prefix-label.disabled-label{opacity:0.4;pointer-events:none;}

.btn-reset-2fa { font-size: 0.8em; color: white; border: none; padding: 7px 12px; border-radius: 5px; cursor: pointer; width: 100%; background: #673ab7; font-weight: 500; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(103,58,183,0.3); }
.btn-reset-2fa:hover { background: #5e35b1; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(103,58,183,0.4); }

.btn-reset-password { font-size: 0.8em; color: white; border: none; padding: 7px 12px; border-radius: 5px; cursor: pointer; width: 100%; background: #d32f2f; font-weight: 500; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(211,47,47,0.3); }
.btn-reset-password:hover { background: #c62828; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(211,47,47,0.4); }

.btn-reset-mail { font-size: 0.8em; color: white; border: none; padding: 7px 12px; border-radius: 5px; cursor: pointer; width: 100%; background: #1976d2; font-weight: 500; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(25,118,210,0.3);
}
.btn-reset-mail:hover { background: #1565c0; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(25,118,210,0.4); }

.btn-reset-2fa,
.btn-reset-password,
.btn-reset-mail{
  width: 100%;
  min-height: 30px;           /* sorgt für einheitliche Höhe */
  display: inline-flex;        /* zentriert Text sauber */
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  white-space: normal;         /* darf umbrechen, bleibt aber kontrolliert */
  box-sizing: border-box;
}


.btn-edit, .btn-mahara, .btn-moodle { font-size: 0.75em; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; }
.btn-edit { background: #72777c; } .btn-mahara { background: #2271b1; } .btn-moodle { background: #f98012; }

.badge-mahara { font-size: 0.7em; color: #2271b1; font-weight: bold; border: 1px solid #2271b1; padding: 2px 6px; border-radius: 10px; }
.user-info-line { font-size: 0.9em; color: #555; margin: 3px 0; }

.copy-password-btn { background: #4caf50; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.9em; margin: 10px 0; transition: all 0.2s; font-weight: 500; }
.copy-password-btn:hover { background: #45a049; transform: translateY(-1px); }

.copy-template-btn { background: #2196f3; color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; font-size: 1em; margin: 15px 0; transition: all 0.2s; font-weight: 500; width: 100%; }
.copy-template-btn:hover { background: #1976d2; transform: translateY(-1px); }

#dnr-modal, #factors-modal, #success-modal, #reset-modal, #password-modal, #name-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.modal-content { background: #fff; margin: 8% auto; padding: 25px; border-radius: 8px; width: 500px; text-align: center; }
.modal-content-wide { background: #fff; margin: 5% auto; padding: 25px; border-radius: 8px; width: 700px; text-align: left; }
.modal-info-box { font-weight: bold; background: #f0f8ff; padding: 8px; border-radius: 4px; margin: 10px 0; font-size: 0.9em; }
.factor-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid #eee; padding: 10px; margin: 5px 0; border-radius: 4px; text-align: left; }
.factor-item small { color: #888; display: block; font-size: 0.8em; }
.btn-delete-factor { background: #ca4a4a; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8em; }
#admin-sync-btn { background: #f98012; color: white; border: none; padding: 10px 15px; border-radius: 4px; cursor: pointer; font-weight:bold; }
#sync-status-msg { margin-left:10px; font-weight:bold; display:none; }
.template-box { background: #f0f8ff; border: 2px dashed #0073aa; padding: 20px; border-radius: 8px; margin: 20px 0; font-family: Arial, sans-serif; font-size: 0.95em; line-height: 1.6; cursor: pointer; transition: all 0.3s; }
.template-box:hover { background: #e6f2ff; border-color: #005a87; box-shadow: 0 2px 8px rgba(0,115,170,0.2); }
.template-box-header { font-size: 0.85em; color: #666; margin-bottom: 10px; font-style: italic; }
.password-display { font-family: monospace; background: #e8f5e8; padding: 15px; border-radius: 6px; font-size: 1.2em; color: #2e7d32; margin: 15px 0; word-break: break-all; }
.password-actions { text-align: center; margin: 15px 0; }
.success-msg { background: #d4edda; color: #155724; padding: 12px; border-radius: 4px; margin: 10px 0; }

/* Gruppen Tooltip UI */
.group-pill{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid #0073aa;
    color:#0073aa;
    background:#e6f2ff;
    font-size:12px;
    cursor: help;
    user-select:none;
}
.group-pill-empty{
    border-color:#ccc;
    color:#666;
    background:#f6f6f6;
    cursor: default;
}

/* Tooltip element (wird per JS in body appended) */
#group-tooltip{
    position: fixed;
    z-index: 999999;
    display:none;
    width: 360px;
    max-width: 50vw;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.35);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
}
#group-tooltip .gt-title{
    font-weight: 700;
    margin-bottom: 8px;
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap:10px;
}
#group-tooltip .gt-hint{
    font-weight: 400;
    opacity: .8;
    font-size: 11px;
    white-space: nowrap;
}
#group-tooltip .gt-list{
    max-height: none;
    overflow: auto;
    padding-right: 6px;
}
#group-tooltip .gt-item{
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0;
    word-break: break-word;
}
#group-tooltip .gt-empty{
    opacity: .85;
    padding: 6px 2px;
}

/* Ghost-Modus für zum Löschen markierte User */
.row-ghost {
    background-color: #f9f9f9 !important; /* Ganz leichtes Grau */
    opacity: 0.6; /* Hellt die ganze Zeile auf */
    transition: opacity 0.2s;
}
.row-ghost:hover {
    opacity: 0.9; /* Beim Drüberfahren wieder besser lesbar */
}
.row-ghost strong {
    text-decoration: line-through; /* Name durchstreichen */
    color: #999;
}
.row-ghost .btn-edit, 
.row-ghost .btn-reset-group button,
.row-ghost .btn-action-group button {
    filter: grayscale(100%); /* Buttons entsättigen */
    opacity: 0.7;
}


#zammad-tooltip {
    display: none;
    position: fixed;
    z-index: 10000; /* Muss über allem anderen liegen */
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    width: 450px; /* Feste Breite für bessere Lesbarkeit */
    max-height: 500px;
    overflow-y: auto; /* Scrollbar falls der Text zu lang ist */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none; /* Verhindert, dass der Tooltip selbst Hover-Events blockiert */
    white-space: pre-wrap; /* Wichtig: Behält Zeilenumbrüche aus Zammad bei */
}

