/* Icon styles for infrastructure diagram */

/* Region header wrapper - vertical split layout */
.region-header-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    border-radius: 4px;
    padding: 4px;
    margin: -4px -4px 12px -4px;
    transition: background 0.15s;
}

.region-header-wrapper:hover {
    background: rgba(0,0,0,0.05);
}

/* Region icon wrapper - vertically centered */
.region-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.region-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Region header content - name and provider stacked */
.region-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 32px;
}

.region-header-content .region-header {
    margin: 0;
    padding: 0;
}

.region-header-content .region-provider {
    margin: 0;
    padding: 0;
    border: none;
}

/* Region address - rightmost column in header */
.region-address {
    font-size: 10px;
    color: #888;
    line-height: 1.4;
}

/* Node info - vertical split layout */
.node-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Node icon wrapper - vertically centered */
.node-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

.node-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Node content - name, purpose, tags stacked */
.node-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Service/container icons - replaces the D/S letter badges */
.service-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Override detail-icon when it contains an img */
.detail-icon.has-icon {
    background: transparent;
    padding: 1px;
}

.detail-icon.has-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Container icon styling */
.container-icon.has-icon {
    background: transparent;
    width: 14px;
    height: 14px;
}

.container-icon.has-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Stack item header icon */
.stack-item-header .detail-icon.has-icon {
    background: transparent;
}
