/* Grundlayout */ 
body { 
    margin: 0; 
    font-family: Arial, sans-serif; 
    background: #f3f4f7; color: #333; 
} 
header { 
    background: #1e1e2f; 
    color: white; 
    padding: 15px 20px;            
    display: flex; justify-content: space-between; 
    align-items: center; 
} 
header h1 { 
    margin: 0; 
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

.auth-box {
    max-width: 400px;
    margin: 60px auto;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

.auth-box input, .auth-box button {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
}

main { 
    padding: 20px; 
}

.layout {
    display: flex;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #2a2a3d;
    color: white;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sidebar li {
    margin: 12px 0;
}

.sidebar a {
    color: #cfd8ff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 6px 4px;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #3a3a55;
    color: white;
}


/* Content-Bereich */
.content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    flex-grow: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


/* Buttons */
.button {
    display: inline-block;
    padding: 8px 14px;
    background: #4a6cff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
    transition: 0.2s;
}

.button:hover {
    background: #3a58d8;
}

.button.danger {
    background: #d9534f;
}

.button.danger:hover {
    background: #c9302c;
}

.mail-body {
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}


.topbar { 
    display: flex; align-items: center; gap: 20px; 
} 

/* Suchfeld */
.searchbar input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #aaa;
    width: 220px;
    background: #fff;
}


.user-info {
    color: #ddd;
}

.user-info a {
    margin-left: 10px;
    color: #7fa6ff;
    text-decoration: none;
}

.user-info a:hover {
    color: white;
}


/* Nachrichtentabelle */
.msg-table {
    width: 100%;
    border-collapse: collapse;
}

.msg-table th {
    text-align: left;
    padding: 10px;
    background: #f0f0f5;
    border-bottom: 2px solid #ddd;
}

.msg-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.msg-table tr:hover {
    background: #f7f9ff;
    cursor: pointer;
}

/* Ungelesene Nachrichten */
.unread {
    background: #eef3ff;
}

.unread strong {
    font-weight: bold;
}

.message-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.mail-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mail-form input,
.mail-form textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.mail-form textarea {
    resize: vertical;
}

.mail-form textarea {
    white-space: pre-wrap;
}

.original-block {
    background: #f7f7f7;
    border-left: 4px solid #4a6cff;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.error {
    color: red;
}
