/* --- Hauptcontainer --- */
.my-last-email-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

body:not(.logged-in) .my-last-email-container {
    max-width: 600px;
}

/* --- Tabs --- */
.mle-tabs {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.mle-tab-link {
    background-color: #f1f1f1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 16px;
}

.mle-tab-link:hover {
    background-color: #ddd;
}

.mle-tab-link.active {
    background-color: #ccc;
}

.mle-tab-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f1f1 !important;
}

.mle-tab-content {
    display: none;
    padding: 6px 1px;
    border-top: none;
}

/* --- Layout für den Profil-Tab --- */
.profile-content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
.profile-form-column { flex: 1; min-width: 300px; }
.profile-picture-column { flex-basis: 150px; order: 2; }
.profile-picture-wrapper .avatar { border-radius: 50%; border: 3px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* --- Stile für Passwort-Anforderungen --- */
#password-requirements {
    font-size: 0.9em;
    color: #555;
    margin: -10px 0 10px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}
#password-requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: '❌';
}
#password-requirements ul li {
    padding-left: 10px;
    transition: all 0.3s;
}
#password-requirements ul li.valid {
    color: green;
    list-style-type: '✅';
}

/* --- Stile für Hinweisboxen --- */
.mle-notice {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.mle-notice.notice-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.mle-notice p {
    margin: 0;
    padding: 0;
}


/* --- Layout für E-Mail-Tabelle --- */
.mle-emails-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.mle-emails-table th, .mle-emails-table td { border: 1px solid #ddd; padding: 8px; background-color: #ffffff; text-align: left; }
.mle-emails-table tbody tr { background-color: #ffffff; }
.mle-emails-table th { background-color: #f2f2f2; }
.mle-emails-table a { text-decoration: none; margin-right: 10px; font-size: 1.2em; }

/* --- Responsivität --- */
@media (max-width: 600px) {
    .profile-content-wrapper { flex-direction: column; }
    .profile-picture-column { order: -1; align-self: center; margin-bottom: 20px; }
}

/* --- Stile für Benachrichtigungen --- */
.mle-notification { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 15px 25px; border-radius: 5px; color: #fff; font-size: 16px; z-index: 1000; opacity: 1; transition: opacity 0.5s ease-in-out; box-shadow: 0 4px 10px rgba(0,0,0,0.2); text-align: center; width: 90%; max-width: 550px; }
.mle-notification.success { background-color: #28a745; }
.mle-notification.error { background-color: #dc3545; }
.mle-notification.fade-out { opacity: 0; }

/* --- Tooltips für Tabellen-Icons --- */
.mle-tooltip {
    position: relative;
    display: inline-block;
}

.mle-tooltip .mle-tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 200px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    font-weight: normal;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mle-tooltip .mle-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

.mle-tooltip:hover .mle-tooltip-text {
    visibility: visible;
    opacity: 1;
}