.console-domain-cell {
    max-width: 280px;
}

.console-domain-link {
    display: block;
    font-weight: 600;
    color: #4e73df;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.console-domain-link:hover {
    text-decoration: underline;
    color: #2e59d9;
}

.console-domain-link i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.console-path {
    font-size: 0.75rem;
    color: #858796;
    word-break: break-all;
    line-height: 1.3;
}

/* IP columns */
.ip-badge {
    font-family: 'Courier New', monospace;
    background: #f8f9fc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #5a5c69;
    border: 1px solid #e3e6f0;
}

.ip-badge.no-ip {
    background: #fce4ec;
    color: #c62828;
    border-color: #f8bbd9;
}

.console-ip-link {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #1cc88a;
    text-decoration: none;
}

.console-ip-link:hover {
    text-decoration: underline;
    color: #17a673;
}

.console-ip-link i {
    font-size: 0.6rem;
    margin-right: 0.25rem;
    opacity: 0.8;
}

.no-console-ip {
    color: #b0bec5;
    font-size: 0.85rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Observability: graylog, instana, dynatrace, prometheus, grafana, darktower, myeemon */
.tech-badge.observability { background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%); color: white; }

/* CI/CD: jenkins, gitlab, corehub, tekton */
.tech-badge.cicd { background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%); color: white; }

/* App Servers: wps, was, jboss, mobilefirst, websphere */
.tech-badge.appservers { background: linear-gradient(135deg, #512da8 0%, #7c4dff 100%); color: white; }

/* API Management: gravitee */
.tech-badge.apimanagement { background: linear-gradient(135deg, #00695c 0%, #26a69a 100%); color: white; }

/* CDN: akamai, cloudflare*/
.tech-badge.cdn { background: linear-gradient(135deg, #0277bd 0%, #03a9f4 100%); color: white; }

.tech-badge.default { background: #6c757d; color: white; }

.server-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin: 0.1rem;
    font-weight: 500;
}

.server-count {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.category-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.category-badge.observability { background: #fff3e0; color: #e65100; }
.category-badge.cicd { background: #e8f5e9; color: #2e7d32; }
.category-badge.app_servers { background: #ede7f6; color: #512da8; }
.category-badge.api_management { background: #e0f2f1; color: #00695c; }
.category-badge.cdn { background: #e3f2fd; color: #0277bd; }

#consoleVmSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: white;
    border: 1px solid #d1d3e2;
    border-top: none;
    border-radius: 0 0 0.35rem 0.35rem;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
}

#consoleVmSearchResults.show {
    display: block;
}

.vm-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.vm-result-item:hover,
.vm-result-item.active {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left-color: #667eea;
}

.vm-result-item.active {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
}

.vm-result-item:last-child {
    border-bottom: none;
}

.selected-vms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selected-vm-tag {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.selected-vm-tag .remove-vm {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #c62828;
    transition: transform 0.15s;
}

.selected-vm-tag .remove-vm:hover {
    transform: scale(1.2);
}

.tech-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: white;
    border: 1px solid #d1d3e2;
    border-top: none;
    border-radius: 0 0 0.35rem 0.35rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    display: none;
}

.tech-autocomplete-dropdown.show {
    display: block;
}

.tech-autocomplete-dropdown .autocomplete-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.tech-autocomplete-dropdown .autocomplete-item:hover {
    background: #f8f9fc;
}

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

#consolesTable th,
#consolesTable td {
    vertical-align: middle;
}

#consolesTable td {
    padding: 0.75rem;
}

.toast-notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#consoleModal .form-group {
    margin-bottom: 1rem;
}

#consoleModal .form-group label {
    font-weight: 600;
    color: #5a5c69;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#consoleModal .form-group label i {
    color: #858796;
}

#detailsContent .table td {
    padding: 0.5rem;
    border-top: 1px solid #e3e6f0;
}

#detailsContent .table td:first-child {
    width: 35%;
    color: #5a5c69;
}

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

input.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.autocomplete-input:hover {
    border-color: #4e73df !important;
    box-shadow: 0 0 0 0.15rem rgba(78, 115, 223, 0.15);
}

input.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;
}

.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.autocomplete-input:focus + .autocomplete-icon {
    color: #667eea;
    transform: translateY(-50%) rotate(180deg);
}

.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;
}

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

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

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

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

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

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

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

.vm-ips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.vm-ip-badge {
    font-family: 'Courier New', monospace;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.7rem;
    border: 1px solid #c8e6c9;
}
    
.detail-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e3e6f0;
}

.detail-section {
    background: #f8f9fc;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
}

.detail-section-title {
    color: #4e73df;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

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

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

.detail-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #858796;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-url-link {
    font-weight: 600;
    color: #4e73df;
    text-decoration: none;
}

.detail-url-link:hover {
    text-decoration: underline;
}

.detail-url-link.text-success {
    color: #1cc88a !important;
}

.detail-url-full {
    font-size: 0.75rem;
    color: #858796;
    word-break: break-all;
    margin-top: 0.25rem;
}

.detail-vm-card {
    background: white;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.detail-vm-card:last-child {
    margin-bottom: 0;
}

.detail-vm-hostname {
    font-weight: 600;
    color: #5a5c69;
}

.detail-vm-hostname i {
    color: #4e73df;
}
