.security-systems-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.systems-list {
    flex: 1;
    max-width: 300px;
}

.messages-container {
    flex: 2;
}

.security-system {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
}

.security-system:hover {
    background: #eee;
}

.security-system h3 {
    margin: 0 0 0.5rem 0;
}

.security-system .location {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.message {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.message-type.alarm { background: #ffebee; color: #c62828; }
.message-type.hinweis { background: #e3f2fd; color: #1565c0; }
.message-type.wartung { background: #f1f8e9; color: #33691e; }
.message-type.störung { background: #fff3e0; color: #e65100; }

.message-date {
    color: #666;
    font-size: 0.9em;
}

.message-content {
    margin: 1rem 0;
}

.message-media {
    margin-top: 1rem;
}

.message-media img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.messages-controls {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    gap: 1rem;
}

.message-type-filter,
.message-read-filter,
.message-sort {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.message.unread {
    border-left: 4px solid #e53935;
}

.message-read-button {
    padding: 0.25rem 0.5rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    float: right;
}

.message-read-button:hover {
    background: #43a047;
}

.message.read .message-read-button {
    display: none;
} 