/* Reusable Component CSS styles */

.cache-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%; /* Ensure the container takes full available width */
}

.cache-item .close-button {
    position: absolute;
    right: 10px; /* Abstand vom rechten Rand des cache-item */
    top: 50%;
    transform: translateY(-50%);
    width: 20px; /* Durchmesser des Kreises */
    height: 20px; /* Durchmesser des Kreises */
    background-color: #b22222; /* Dunkelrote Hintergrundfarbe */
    color: white; /* Weißes "X" */
    border: none;
    border-radius: 50%; /* Kreisform */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Größe des "X" */
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cache-item:hover .close-button {
    opacity: 1; /* Sichtbar beim Hover */
}

.close-button:before {
    content: '\2715'; /* Unicode für das "X"-Symbol */
}

.key-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.key-header {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none; /* Damit es keine Klick-Ereignisse stört */
    margin-right: 0.2rem;
}

.key {
    border: 1px solid gray;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    background-color: #f3f3f3;
    color: #333;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
}

/* Key-Combination */
.key-combination {
    display: flex;
    gap: 0.25rem;
}

.key-info {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f4f4f4;
    font-family: monospace;
    font-size: 0.9rem;
    color: black;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}