body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.navbar-brand {
    font-weight: 600;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.btn {
    border-radius: 0.375rem;
}

#stats .card {
    transition: transform 0.15s ease-in-out;
}

#stats .card:hover {
    transform: translateY(-2px);
}

/* Интерактивная схема каталога */
.catalog-diagram-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.catalog-diagram-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
}

.catalog-hotspot {
    position: absolute;
    background: rgba(255, 0, 0, 0.25);
    border: 1px solid rgba(255, 0, 0, 0.6);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
    transition: background 0.15s ease;
}

.catalog-hotspot:hover {
    background: rgba(255, 0, 0, 0.5);
    z-index: 10;
}

.catalog-hotspot .hotspot-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 220px;
    max-width: 320px;
    color: #212529;
    font-weight: normal;
    text-shadow: none;
    text-align: left;
    z-index: 20;
    pointer-events: none;
}

.catalog-hotspot:hover .hotspot-tooltip {
    display: block;
}

.hotspot-tooltip .oem-text {
    font-family: monospace;
    background: #f8f9fa;
    border: 1px dashed #adb5bd;
    padding: 0.25rem;
    margin-top: 0.25rem;
    border-radius: 0.2rem;
    word-break: break-all;
}
