/* Teamlist Panel — Datei: infusions/teamlist_panel/css/styles.css (Design / „schönes CSS“) */

.teamlist-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.5);
}
.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 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 img {
    max-width: 100px;
    border-radius: 6px;
    box-shadow: 1px 1px 4px #bbb;
}
.teamlist-admin-form {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    max-width: 500px;
}
.teamlist-admin-form input[type="text"] {
    width: 60%;
    padding: 5px;
    margin-right: 10px;
}
.teamlist-admin-form input[type="file"] {
    margin: 5px 0;
}
.teamlist-admin-form input[type="submit"] {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
.teamlist-admin-form label {
    margin-left: 10px;
    font-size: 0.95em;
}
.teamlist-admin-message {
    background: #e6ffe6;
    border: 1px solid #b2ffb2;
    color: #2d662d;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Standard: kein blauer Kasten (öffentliche Teamliste, Embed) */
.teamlist-admin-wrapper {
    border: none;
    border-radius: 16px;
    padding: 20px 16px;
    margin: 16px 0;
    background: rgba(255,255,255,0.06);
    box-shadow: none;
}

/* Nur Admin-Bereich: Rahmen wie früher */
.teamlist-admin-wrapper.admin-frame {
    border: 2px solid #0078d7;
    border-radius: 16px;
    padding: 25px 20px;
    margin: 20px 0;
    background: transparent;
    box-shadow: 0 2px 12px rgba(0, 120, 215, 0.12);
}

.teamlist-page {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    margin: 0 0 20px 0;
}
.teamlist-page h2 {
    color: #0078d7;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.teamlist-embed .teamlist-admin-wrapper {
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 8px 0;
    background: transparent;
}

.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;
    text-decoration: 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-btn.edit {
    background: linear-gradient(90deg, #2d662d 0%, #3d8b3d 100%);
}
.teamlist-btn.edit:hover {
    background: linear-gradient(90deg, #1f451f 0%, #2d662d 100%);
}
.teamlist-user-table {
    border-collapse: collapse;
    margin: 0 auto 10px auto;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    overflow: hidden;
}
.teamlist-user-table th, .teamlist-user-table td {
    border: 1px solid #bbb;
    padding: 8px 12px;
}
.teamlist-user-table th {
    background: #0078d7;
    color: #fff;
}
.teamlist-user-table tr:nth-child(even) {
    background: rgba(0,0,0,0.04);
}
.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: 2px solid #0078d7;
    border-radius: 16px;
    color: #000;
    padding: 16px 18px 10px 18px;
    min-width: 140px;
    max-width: 180px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 120, 215, 0.12);
    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;
    object-fit: cover;
}
.team-user-name {
    margin-top: 5px;
    font-weight: bold;
    margin-bottom: 6px;
}
.team-user-icons {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.team-user-icons a {
    margin: 0 2px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
}
.team-user-icons a svg {
    display: block;
}
.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;
    max-width: 100%;
    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;
    font-weight: 500;
}
.teamlist-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
