.teamlist-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.5);
    table-layout: fixed;
}
.teamlist-admin-table tr.team-row td {
    vertical-align: middle;
}
.teamlist-admin-table tr.team-members-row td.team-members-cell {
    padding: 0 10px 12px 10px;
    background: rgba(0,0,0,0.35);
}
.teamlist-admin-table .team-members-container {
    max-width: 100%;
    overflow-x: auto;
}
.teamlist-admin-table .team-toggle-arrow {
    display: inline-block;
    width: 1em;
    text-align: center;
}
.teamlist-admin-table img {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 1px 1px 4px #bbb;
}
.teamlist-admin-table th, .teamlist-admin-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: center;
}
.teamlist-admin-table th {
    background: rgba(0,0,0,0.5);
    color: #fff;
}
.teamlist-admin-table td {
    color: #ececec;
}
.teamlist-admin-table .team-name a.team-name-link {
    color: #ececec;
    text-decoration: none;
    cursor: pointer;
}
.teamlist-admin-table .team-name a.team-name-link:hover {
    color: #7ec8ff;
}
.teamlist-admin-table .user-cell,
.teamlist-admin-table .user-cell small {
    color: #ececec;
}
.teamlist-admin-table tr:nth-child(even) {
    background: rgba(0,0,0,0.5);
}
.teamlist-admin-table tr:nth-child(odd) {
    background: rgba(0,0,0,0.5);
}
.teamlist-admin-table tr.team-members-row {
    background: rgba(0,0,0,0.35);
}
.teamlist-admin-table tr.team-members-row td {
    border-top: none;
}
.teamlist-admin-form {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    max-width: 500px;
    color: #212529;
}
.teamlist-admin-form input[type="text"] {
    width: 60%;
    padding: 5px;
    margin-right: 10px;
}
.teamlist-admin-form input[type="file"] {
    margin: 5px 0;
    color: #212529;
}
.teamlist-admin-form label {
    margin-left: 10px;
    font-size: 0.95em;
    color: #212529;
}
.teamlist-admin-form select {
    color: #212529;
    background: #fff;
    border: 1px solid #ced4da;
    padding: 6px 10px;
    width: 100%;
}
.teamlist-admin-form input[type="submit"] {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    font-weight: 600;
}
.teamlist-admin-message {
    background: #e6ffe6;
    border: 1px solid #b2ffb2;
    color: #2d662d;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 5px;
}
.teamlist-admin-wrapper {
    border: 2px solid #0078d7;
    border-radius: 16px;
    padding: 25px 20px;
    margin: 30px 0;
    background: transparent;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.teamlist-btn,
.teamlist-admin-form input[type="submit"].teamlist-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(90deg, #0078d7 60%, #00b4d8 100%);
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    margin: 0 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    outline: none;
}
.teamlist-btn:hover, .teamlist-btn:focus {
    background: linear-gradient(90deg, #005fa3 60%, #0096c7 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px) scale(1.04);
}
.teamlist-btn.delete {
    background: #d70022;
}
.teamlist-btn.delete:hover {
    background: #a30018;
}
.teamlist-user-table {
    border-collapse: collapse;
    margin: 0 auto 10px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.teamlist-user-table th, .teamlist-user-table td {
    border: 1px solid #bbb;
    padding: 8px 12px;
    color: #333;
}
.teamlist-user-table th {
    background: #0078d7;
    color: #fff;
}
.teamlist-user-table tr:nth-child(even) td {
    background: #f8f9fa;
}
.teamlist-user-table tr:nth-child(odd) td {
    background: #fff;
}
.teamlist-user-table input[type="text"],
.teamlist-user-table select {
    color: #212529;
    background: #fff;
}
.team-members-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}
.team-user-card {
    text-align: center;
    width: 150px;
    background: #fff;
    border: 3px solid red;
    border-radius: 16px;
    color: #000;
    padding: 16px 18px 10px 18px;
    min-width: 140px;
    max-width: 180px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 2px solid #0078d7;
    background: #fff;
}
.team-user-name {
    margin-top: 5px;
    font-weight: bold;
    margin-bottom: 6px;
}
.team-user-icons a {
    margin: 0 4px;
}
.team-user-icons {
    margin-top: 5px;
}
.team-user-task {
    margin-bottom: 6px;
    color: #0078d7;
    font-size: 0.98em;
    font-style: italic;
    min-height: 18px;
}
.team-user-status-icon {
    margin: 8px 0 2px 0;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.team-user-divider {
    width: 60%;
    border: 0;
    border-top: 1.5px solid #e0e0e0;
    margin: 8px 0 8px 0;
}
.team-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto 10px auto;
    max-width: 540px;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 0 10px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.team-banner {
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.team-members {
    display: none;
    margin: 10px 0;
}
.toggle-btn {
    cursor: pointer;
    color: #0078d7;
    text-decoration: underline;
}
.teamlist-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Admin-Hauptseite: heller Content-Bereich -> dunkle Schrift */
.teamlist-admin-panel {
    color: #212529;
}
.teamlist-admin-panel h3,
.teamlist-admin-panel h4 {
    color: #212529;
    background: none;
    display: block;
    padding: 0;
    margin: 1.2em 0 0.6em 0;
    font-weight: 600;
}
.teamlist-admin-panel strong,
.teamlist-admin-panel label {
    color: #212529;
}
.teamlist-admin-panel small {
    color: #6c757d;
}
/* Dunkle Team-Tabelle: helle Schrift beibehalten */
.teamlist-admin-panel .teamlist-admin-table td {
    color: #ececec;
}
.teamlist-admin-panel .teamlist-admin-table th {
    color: #fff;
}
.teamlist-admin-panel .teamlist-user-table th {
    color: #fff;
    background: #0078d7;
}
.teamlist-admin-panel .teamlist-user-table td {
    color: #212529;
    background: #fff;
}
.teamlist-admin-panel .teamlist-user-table tr:nth-child(even) td {
    background: #f8f9fa;
}
.teamlist-admin-panel input[type="text"],
.teamlist-admin-panel input[type="file"],
.teamlist-admin-panel select,
.teamlist-admin-panel textarea {
    color: #212529;
    background: #fff;
    border: 1px solid #ced4da;
}
.teamlist-admin-panel input[type="text"]::placeholder {
    color: #6c757d;
}
.teamlist-admin-panel .teamlist-admin-form label {
    color: #212529;
}
.teamlist-create-form,
.teamlist-edit-form {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}
.teamlist-create-form table,
.teamlist-edit-form table {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.teamlist-create-form td,
.teamlist-edit-form td {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px;
}
.teamlist-create-form tr:last-child td,
.teamlist-edit-form tr:last-child td {
    border-bottom: none;
}
.teamlist-create-form input[type="text"],
.teamlist-create-form input[type="file"],
.teamlist-create-form select,
.teamlist-edit-form input[type="text"],
.teamlist-edit-form input[type="file"],
.teamlist-edit-form select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}
.teamlist-create-form input[type="text"]:focus,
.teamlist-create-form select:focus,
.teamlist-edit-form input[type="text"]:focus,
.teamlist-edit-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.teamlist-submit-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.teamlist-submit-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}
.teamlist-submit-btn.delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
}
.teamlist-submit-btn.save-all {
    background: linear-gradient(135deg, #28a745, #20c997);
}
.teamlist-edit-form .teamlist-admin-table td {
    color: #333;
    background: #fff;
}
.teamlist-edit-form .teamlist-admin-table th {
    color: #fff;
    background: #0078d7;
}
.removed-user {
    opacity: 0.5;
    background-color: #ffe6e6 !important;
}

/* Formularseiten (Create/Edit): heller Admin-Content -> dunkle Schrift */
.teamlist-admin-panel.teamlist-create-form,
.teamlist-admin-panel.teamlist-edit-form {
    color: #212529;
}
.teamlist-admin-panel.teamlist-create-form h3,
.teamlist-admin-panel.teamlist-create-form h4,
.teamlist-admin-panel.teamlist-edit-form h3,
.teamlist-admin-panel.teamlist-edit-form h4,
.teamlist-admin-panel.teamlist-create-form strong,
.teamlist-admin-panel.teamlist-edit-form strong,
.teamlist-admin-panel.teamlist-create-form label,
.teamlist-admin-panel.teamlist-edit-form label,
.teamlist-admin-panel.teamlist-create-form td,
.teamlist-admin-panel.teamlist-edit-form td,
.teamlist-admin-panel.teamlist-create-form small,
.teamlist-admin-panel.teamlist-edit-form small {
    color: #212529;
}
.teamlist-admin-panel.teamlist-create-form table,
.teamlist-admin-panel.teamlist-edit-form table {
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.teamlist-admin-panel.teamlist-create-form td,
.teamlist-admin-panel.teamlist-edit-form td {
    border-bottom: 1px solid #eee;
}
