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

.dataTables_processing {
    z-index: 1000;
}

#mysqlServersTable {
    width: 100% !important;
    table-layout: fixed;
}

#mysqlServersTable th,
#mysqlServersTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
}

#mysqlServersTable tbody tr:hover {
    background-color: #f8f9fc;
}

.table-wrapper {
    width: 100%;
    overflow-x: hidden;
}

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

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

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

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

.input-with-clear input {
    padding-right: 2rem;
}

.clear-input-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #858796;
    cursor: pointer;
    padding: 0.25rem;
    display: none;
    z-index: 10;
}

.input-with-clear.has-content .clear-input-btn {
    display: block;
}

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

.action-btn-circle {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-width: 1px;
}

.action-btn-circle:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.version-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.version-badge.version-8 {
    background: #00758f;
    color: white;
}

.version-badge.version-57 {
    background: #5bc0de;
    color: white;
}

.version-badge.version-old {
    background: #f0ad4e;
    color: #333;
}

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

.runtime-badge.runtime-docker {
    background: #0db7ed;
    color: white;
}

.runtime-badge.runtime-podman {
    background: #892ca0;
    color: white;
}

.runtime-badge.runtime-containerd {
    background: #575757;
    color: white;
}

.runtime-badge.runtime-none {
    background: #6c757d;
    color: white;
}

.runtime-badge.runtime-unknown {
    background: #e9ecef;
    color: #495057;
}

#mysqlServerDetailsModal .modal-dialog {
    max-width: 1100px;
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

@media (min-width: 576px) {
    #mysqlServerDetailsModal .modal-dialog {
        min-height: calc(100% - 3.5rem);
        margin: 1.75rem auto;
    }
}

#mysqlServerDetailsModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#mysqlServerDetailsModal .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

#mysqlServerDetailsModal .modal-header .close {
    color: white;
    opacity: 0.9;
    text-shadow: none;
    font-size: 1.75rem;
}

#mysqlServerDetailsModal .modal-header .close:hover {
    opacity: 1;
    color: white;
}

#mysqlServerDetailsModal .modal-body {
    padding: 1.5rem;
    background-color: #f8f9fc;
}

#mysqlServerDetailsModal .modal-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

.server-detail-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4e73df;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.server-detail-card.mysql-card {
    border-left-color: #00758f;
}

.server-detail-card.vm-card {
    border-left-color: #4e73df;
}

.server-detail-card.schemas-card {
    border-left-color: #1cc88a;
}

.detail-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e3e6f0;
}

.detail-card-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.detail-card-header-icon.mysql-icon {
    background: linear-gradient(135deg, #00758f 0%, #005f73 100%);
    color: white;
}

.detail-card-header-icon.vm-icon {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
}

.detail-card-header-icon.schemas-icon {
    background: linear-gradient(135deg, #1cc88a 0%, #17a673 100%);
    color: white;
}

.detail-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #5a5c69;
    margin: 0;
}

.detail-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.detail-info-item {
    background: #f8f9fc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.detail-info-item:hover {
    background: #e9ecf4;
}

.detail-info-label {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #858796;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.detail-info-label i {
    margin-right: 0.4rem;
    color: #4e73df;
    font-size: 0.75rem;
}

.detail-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5a5c69;
    word-break: break-word;
}

.vm-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
}

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

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

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

.schemas-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.schema-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.schema-item:hover {
    background: #e9ecf4;
}

.schema-name {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
    color: #5a5c69;
}

#mysqlServerDetailsModal .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#mysqlServerDetailsModal .row > [class*="col-"] {
    display: flex;
}

#mysqlServerDetailsModal .server-detail-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mysqlServerDetailsModal .detail-info-grid {
    flex: 1;
}

#mysqlServerDetailsModal .schemas-card {
    display: flex;
    flex-direction: column;
}

#mysqlServerDetailsModal .schemas-card .schemas-list,
#mysqlServerDetailsModal .schemas-card .text-muted {
    flex: 1;
    min-height: 0;
}

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

.server-detail-card {
    animation: fadeInUp 0.3s ease;
}

.server-detail-card:nth-child(2) {
    animation-delay: 0.1s;
}

.server-detail-card:nth-child(3) {
    animation-delay: 0.2s;
}

.schemas-list::-webkit-scrollbar {
    width: 6px;
}

.schemas-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.schemas-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.schemas-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

@media (max-width: 991px) {
    #mysqlServerDetailsModal .modal-dialog {
        max-width: 95%;
    }
}

@media (max-width: 767px) {
    #mysqlServerDetailsModal .col-md-6 {
        margin-bottom: 1rem;
    }
}
