.expiry-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.4rem;
}

.expiry-badge.safe {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.expiry-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.expiry-badge.danger {
    background-color: #ffeeba;
    color: #856404;
    border: 1px solid #f6c23e;
}

.expiry-badge.expired {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.account-badge.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.account-badge.locked {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.dataTables_processing {
    z-index: 1000;
}

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

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

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

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

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

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

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

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

#mysqlUserDetailsModal .detail-info-item {
    padding: 0.5rem;
}

#mysqlUserDetailsModal .detail-info-grid {
    gap: 0.5rem;
}

#mysqlUserDetailsModal .detail-card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

#mysqlUserDetailsModal .user-detail-card {
    padding: 1rem;
}

#mysqlUserDetailsModal .modal-body {
    padding: 1rem;
}

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

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

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

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

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

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

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

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

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

.user-detail-card.database-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.user-icon {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
}

.detail-card-header-icon.database-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;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.4rem;
}

.status-badge.vigente {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.status-badge.por-vencer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.status-badge.critico {
    background: linear-gradient(135deg, #ffeeba 0%, #f6c23e 100%);
    color: #856404;
}

.status-badge.vencido {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.host-port-badge {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #5a5c69;
    background: #f8f9fc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.breadcrumb {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.breadcrumb > div:first-child {
    display: flex;
    align-items: center;
}

.breadcrumb > div:last-child {
    display: flex;
    align-items: center;
    margin-left: auto;
}

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

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

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