.agent-name {
    line-height: 1.3;
}

.agent-type-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-k8s {
    background: linear-gradient(135deg, #326ce5 0%, #1a4db3 100%);
    color: white;
}

.type-nginx {
    background: linear-gradient(135deg, #009639 0%, #006b28 100%);
    color: white;
}

.type-mysql {
    background: linear-gradient(135deg, #00758f 0%, #004d5f 100%);
    color: white;
}

.type-default {
    background: linear-gradient(135deg, #858796 0%, #5a5c69 100%);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-healthy {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-unhealthy {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-unknown {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    color: #495057;
}

.location-badge i {
    color: #6c757d;
}

.image-tag {
    display: block;
    padding: 0.2rem 0.4rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #5a5c69;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    cursor: default;
}

.image-column {
    max-width: 300px;
}

.heartbeat-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: #5a5c69;
}

.heartbeat-time i {
    color: #1cc88a;
}

.heartbeat-warning {
    color: #856404;
    background-color: #fff3cd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.heartbeat-warning i {
    color: #f6c23e;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.input-with-clear {
    position: relative;
}

.input-with-clear input {
    padding-right: 30px;
}

.input-with-clear .clear-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #858796;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.input-with-clear.has-content .clear-input-btn {
    opacity: 1;
}

.input-with-clear .clear-input-btn:hover {
    color: #e74a3b;
}

#agentsTable .btn-circle {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 28px;
}

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

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

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

.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-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3e6f0;
}

#agentsTable_processing.dataTables_processing {
    display: none !important;
}

.dataTables_processing {
    z-index: 1000;
}

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

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

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

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