.container-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container-status-badge i {
    margin-right: 0.25rem;
    font-size: 0.6rem;
}

.container-status-badge.running {
    background-color: rgba(28, 200, 138, 0.15);
    color: #1cc88a;
    border: 1px solid rgba(28, 200, 138, 0.3);
}

.container-status-badge.stopped {
    background-color: rgba(133, 135, 150, 0.15);
    color: #858796;
    border: 1px solid rgba(133, 135, 150, 0.3);
}

.container-status-badge.exited {
    background-color: rgba(231, 74, 59, 0.15);
    color: #e74a3b;
    border: 1px solid rgba(231, 74, 59, 0.3);
}

.container-status-badge.created {
    background-color: rgba(54, 185, 204, 0.15);
    color: #36b9cc;
    border: 1px solid rgba(54, 185, 204, 0.3);
}

.container-status-badge.paused {
    background-color: rgba(246, 194, 62, 0.15);
    color: #f6c23e;
    border: 1px solid rgba(246, 194, 62, 0.3);
}

.software-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.software-type-badge.database {
    background-color: rgba(78, 115, 223, 0.15);
    color: #4e73df;
    border: 1px solid rgba(78, 115, 223, 0.3);
}

.software-type-badge.runtime {
    background-color: rgba(28, 200, 138, 0.15);
    color: #1cc88a;
    border: 1px solid rgba(28, 200, 138, 0.3);
}

.software-type-badge.webserver {
    background-color: rgba(246, 194, 62, 0.15);
    color: #d4a000;
    border: 1px solid rgba(246, 194, 62, 0.3);
}

.software-type-badge.agent {
    background-color: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.software-type-badge.middleware {
    background-color: rgba(54, 185, 204, 0.15);
    color: #36b9cc;
    border: 1px solid rgba(54, 185, 204, 0.3);
}

.software-type-badge.library {
    background-color: rgba(253, 126, 20, 0.15);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.3);
}

.software-type-badge.other {
    background-color: rgba(133, 135, 150, 0.15);
    color: #858796;
    border: 1px solid rgba(133, 135, 150, 0.3);
}

.software-type-badge.cache {
    background-color: rgba(231, 74, 59, 0.15);
    color: #e74a3b;
    border: 1px solid rgba(231, 74, 59, 0.3);
}

.software-type-badge.messaging {
    background-color: rgba(32, 201, 151, 0.15);
    color: #20c997;
    border: 1px solid rgba(32, 201, 151, 0.3);
}


.port-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    margin: 0.1rem;
    white-space: nowrap;
}

.port-chip .port-host {
    color: #4e73df;
    font-weight: 600;
}

.port-chip .port-separator {
    color: #858796;
    margin: 0 0.15rem;
}

.port-chip .port-container {
    color: #667eea;
}

.port-chip .port-protocol {
    color: #858796;
    font-size: 0.6rem;
    margin-left: 0.2rem;
}

.ports-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 200px;
}

.ports-more {
    background: rgba(78, 115, 223, 0.15);
    color: #4e73df;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: help;
}

.version-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.version-chip.outdated {
    background: rgba(246, 194, 62, 0.15);
    color: #d4a000;
}

.version-chip.critical {
    background: rgba(231, 74, 59, 0.15);
    color: #e74a3b;
}


.image-chip {
    display: inline-flex;
    flex-direction: column;
    max-width: 250px;
}

.image-chip .image-name {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    color: #5a5c69;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-chip .image-tag {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(78, 115, 223, 0.1);
    color: #4e73df;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.65rem;
    margin-top: 0.15rem;
    display: inline-block;
    width: fit-content;
}

.image-chip .image-registry {
    font-size: 0.65rem;
    color: #858796;
}


.os-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.os-badge i {
    margin-right: 0.35rem;
}

.os-badge.linux {
    background: rgba(246, 194, 62, 0.15);
    color: #d4a000;
}

.os-badge.windows {
    background: rgba(78, 115, 223, 0.15);
    color: #4e73df;
}

.os-badge.centos,
.os-badge.rhel,
.os-badge.rocky {
    background: rgba(231, 74, 59, 0.15);
    color: #e74a3b;
}

.os-badge.ubuntu,
.os-badge.debian {
    background: rgba(253, 126, 20, 0.15);
    color: #fd7e14;
}


.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.count-badge.versions {
    background: rgba(28, 200, 138, 0.15);
    color: #1cc88a;
    border: 1px solid rgba(28, 200, 138, 0.3);
}

.count-badge.containers {
    background: rgba(54, 185, 204, 0.15);
    color: #36b9cc;
    border: 1px solid rgba(54, 185, 204, 0.3);
}

.count-badge.zero {
    background: rgba(133, 135, 150, 0.1);
    color: #858796;
    border: 1px solid rgba(133, 135, 150, 0.2);
}

.software-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.35rem 0.35rem 0 0;
    padding: 1rem 1.25rem;
    border-bottom: none;
    min-height: 4rem;
}

.software-header h6 {
    color: white;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.software-header .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.software-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.software-header .btn i {
    margin-right: 0.5rem;
    font-size: 0.7rem;
}


.software-body {
    background: white;
    padding: 1.25rem;
    border-radius: 0 0 0.35rem 0.35rem;
}


.software-filters {
    margin-bottom: 1rem;
}

.software-filters .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #5a5c69;
}

.software-filters .form-label i {
    color: #858796;
    width: 14px;
}

.software-filters .column-filter {
    font-size: 0.875rem;
}

.software-filters .column-filter:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.1rem rgba(78, 115, 223, 0.25);
}

.software-filters .column-filter.active {
    border-color: #4e73df;
    background-color: rgba(78, 115, 223, 0.05);
}


.software-table {
    font-size: 0.9rem;
}

.software-table thead th {
    background-color: #f8f9fc;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    color: #5a5c69;
    font-size: 0.85rem;
}

.software-table .action-column {
    width: 100px !important;
}


.software-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.software-modal .modal-header .close {
    color: white;
    opacity: 0.8;
}

.software-modal .modal-header .close:hover {
    opacity: 1;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section-title {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #e3e6f0;
    padding-bottom: 0.25rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.25rem;
}

.detail-label {
    color: #858796;
    width: 120px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.detail-value {
    color: #5a5c69;
    font-size: 0.85rem;
}


.config-path {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: #f8f9fc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #5a5c69;
    word-break: break-all;
}

.kernel-chip {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(133, 135, 150, 0.1);
    color: #5a5c69;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
}


.related-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e3e6f0;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    background: #f8f9fc;
    font-size: 0.8rem;
}

.related-item:last-child {
    margin-bottom: 0;
}

.related-item:hover {
    background: #eaecf4;
}

.related-item .item-name {
    color: #5a5c69;
    font-weight: 500;
}

.related-item .item-meta {
    color: #858796;
    font-size: 0.7rem;
}

.dropdown-searchable {
    position: relative;
}

.dropdown-searchable .dropdown-menu {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin-top: 2px;
    border: 1px solid #d1d3e2;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.dropdown-searchable .dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.dropdown-searchable .dropdown-item:hover {
    background-color: #eaecf4;
}

.dropdown-searchable .dropdown-item.selected {
    background-color: #4e73df;
    color: white;
}

.dropdown-searchable .dropdown-input {
    padding-right: 30px;
}

.dropdown-searchable .dropdown-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.5;
}

.dropdown-searchable .dropdown-toggle-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #5a5c69;
}

.dropdown-searchable .dropdown-toggle-btn:hover {
    opacity: 1;
}

.dropdown-searchable.open .dropdown-toggle-btn::after {
    border-top: none;
    border-bottom: 5px solid #5a5c69;
}

.dropdown-searchable .dropdown-input.active {
    border-color: #4e73df;
    background-color: rgba(78, 115, 223, 0.05);
}


.timestamp {
    font-size: 0.75rem;
    color: #858796;
}

.timestamp i {
    margin-right: 0.25rem;
}

.registry-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(133, 135, 150, 0.1);
    color: #6c757d;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.image-name-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(90, 92, 105, 0.08);
    color: #5a5c69;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-tag-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(78, 115, 223, 0.12);
    color: #4e73df;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* OS Name Autocomplete Styles */
.os-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

input.os-autocomplete-input {
    background-color: white !important;
    border: 2px solid #d1d3e2 !important;
    border-radius: 0.35rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    transition: all 0.2s ease;
    width: 100%;
}

input.os-autocomplete-input:hover {
    border-color: #4e73df !important;
    box-shadow: 0 0 0 0.15rem rgba(78, 115, 223, 0.15);
}

input.os-autocomplete-input:focus {
    background-color: white !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    outline: none;
}

.os-autocomplete-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4e73df;
    pointer-events: none;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

input.os-autocomplete-input:focus + .os-autocomplete-icon {
    color: #667eea;
    transform: translateY(-50%) rotate(180deg);
}

.os-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1060;
    display: none;
}

.os-autocomplete-dropdown.show {
    display: block;
    animation: osSlideDownFade 0.2s ease;
}

@keyframes osSlideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.os-autocomplete-item {
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f3f5;
    color: #5a5c69;
    font-size: 0.85rem;
}

.os-autocomplete-item:last-child {
    border-bottom: none;
}

.os-autocomplete-item:hover {
    background: linear-gradient(135deg, #e7f3ff 0%, #d6ebff 100%);
    color: #2c5aa0;
    padding-left: 1.5rem;
    font-weight: 600;
}

.os-autocomplete-empty {
    padding: 1rem;
    text-align: center;
    color: #858796;
    font-style: italic;
    font-size: 0.8rem;
}

input.os-autocomplete-input.has-value {
    background-color: #f8f9fc !important;
    border-color: #1cc88a !important;
    font-weight: 600;
}
