 :root {
            --bg-color: #f4f7f6;
            --card-color: #ffffff;
            --primary-color: #2563eb;
            --text-color: #1f2937;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
        }

        .container {
            width: 100%;
            max-width: 600px;
            background: var(--card-color);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        h1 { text-align: center; margin-top: 0; }
        .hidden { display: none !important; }

        .flex-row {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .login-box {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        input[type="text"], input[type="password"], textarea {
            padding: 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 16px;
        }

        textarea { resize: vertical; height: 80px; }

        button {
            padding: 12px 20px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.2s;
        }

        button:hover { background-color: #1d4ed8; }
        button.delete-btn { background-color: #ef4444; padding: 6px 12px; }
        button.delete-btn:hover { background-color: #dc2626; }

        .note-item {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .note-text { white-space: pre-wrap; word-break: break-word; margin: 0 10px 0 0; }

        .user-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #eff6ff;
            padding: 10px 15px;
            border-radius: 6px;
            margin-bottom: 20px;
        }

        .hint {
            font-size: 13px;
            color: #6b7280;
            margin-top: -5px;
            text-align: center;
        }

        .note-item {
    position: relative;
    padding-top: 30px; /* Platz für das Badge oben */
}

.category-badge {
    position: absolute;
    top: 8px;
    left: 12px;
    background-color: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}
