.nginx-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;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.nginx-header .dropdown-toggle {
    color: white;
}

.nginx-header .dropdown-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

.nginx-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.nginx-body {
    padding: 1.25rem;
    background-color: #fff;
    border-radius: 0 0 0.35rem 0.35rem;
}

.nginx-filter-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #5a5c69;
    font-weight: 700;
}

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

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

.nginx-column-filter:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.1rem rgba(102, 126, 234, 0.25) !important;
}

.protocol-indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.protocol-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

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

.protocol-active {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
}

.protocol-active i {
    color: #667eea;
}

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

.protocol-inactive i {
    color: #dc3545;
}

.protocol-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.action-column {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

#domainsTable .btn-outline-success {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #fff !important;
    border: 1px solid #667eea !important;
    color: #667eea !important;
}

#domainsTable .btn-outline-success:hover {
    background-color: #667eea !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(102, 126, 234, 0.3);
}

.badge-success {
    background-color: #667eea;
}

.badge-danger {
    background-color: #dc3545;
}

@media (max-width: 768px) {
    .protocol-indicators {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .protocol-badge {
        font-size: 0.7rem;
        padding: 0.125rem 0.25rem;
    }
    
    .nginx-header {
        padding: 0.75rem 1rem;
        min-height: 3rem;
    }
    
    .nginx-body {
        padding: 1rem;
    }
    
    .nginx-header::after {
        width: 80px;
        height: 60px;
        right: -10px;
        top: -5px;
    }
}


#certificatesTable td,
#domainsTable td {
    vertical-align: middle;
    padding: 0.75rem;
}

#certificatesTable .btn:hover {
    transform: translateY(-1px);
}

#certificatesTable .btn[style*="border: 1px solid #667eea"]:hover {
    background-color: #667eea !important;
    color: white !important;
}

#certificatesTable .btn[style*="border: 1px solid #28a745"]:hover {
    background-color: #28a745 !important;
    color: white !important;
}

#certificatesTable .btn-outline-success,
#domainsTable .btn-outline-success {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #fff !important;
    border: 1px solid #667eea !important;
    color: #667eea !important;
}

#certificatesTable .btn-outline-success:hover,
#domainsTable .btn-outline-success:hover {
    background-color: #667eea !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(102, 126, 234, 0.3);
}

#certificatesTable .btn-magic {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #fff !important;
    border: 1px solid #667eea !important;
    color: #667eea !important;
    margin-left: 0.25rem;
}

#certificatesTable .btn-magic:hover {
    background-color: #667eea !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    #certificatesTable .action-column {
        width: 90px; 
        min-width: 90px;
    }
}

.nginx-column-filter {
    font-size: 0.8rem; 
    padding: 0.25rem 0.5rem;
}

.nginx-filter-label {
    font-size: 0.8rem; 
    margin-bottom: 0.15rem;
    color: #5a5c69;
    font-weight: 700;
}

.nginx-filter-label i {
    color: #858796;
    width: 12px;
    font-size: 0.75rem;
}

@media (max-width: 1200px) {
    .nginx-column-filter {
        font-size: 0.75rem;
    }
    
    .nginx-filter-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .row.mb-3 .col-md-3:nth-child(2),
    .row.mb-3 .col-md-2:nth-child(4),
    .row.mb-3 .col-md-2:nth-child(5) {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .row.mb-3 .col-md-2,
    .row.mb-3 .col-md-3 { 
        margin-bottom: 0.75rem;
    }
    
    .nginx-column-filter {
        font-size: 0.8rem;
    }
}



.domain-tabs {
    background: linear-gradient(135deg, #f8f9fc 0%, #eaecf4 100%);
    border-bottom: 2px solid #e3e6f0;
    margin: 0;
    padding: 0;
}

.domain-tabs .nav-link {
    background-color: transparent;
    border: none;
    color: #5a5c69;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    font-size: 0.875rem;
}

.domain-tabs .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: none;
}

.domain-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    font-weight: 700;
}

.domain-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.domain-tabs .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}
 
.domain-tabs .nav-link:not(.active):hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(102, 126, 234, 0.15);
}
 
@media (max-width: 768px) {
    .domain-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .domain-tabs .nav-link i {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
}

@media (max-width: 576px) {
    .domain-tabs {
        flex-wrap: wrap;
    }
    
    .domain-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 33.33%;
        text-align: center;
    }
}
 
.tab-content .tab-pane {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content .tab-pane.active {
    opacity: 1;
}
 
.nginx-config-block pre {
    background-color: #f8f9fc !important;
    border: 1px solid #e3e6f0;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
    max-height: 300px;
    overflow-y: auto;
}

.confd-config pre {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
}
 
.nginx-config-block pre::-webkit-scrollbar,
.confd-config pre::-webkit-scrollbar {
    width: 6px;
}

#confdAccordion .card-header .btn-link {
    transition: all 0.2s ease;
}

#confdAccordion .card-header .btn-link:hover {
    opacity: 0.9;
}

#confdAccordion .card-header .btn-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

#confdAccordion .card-header .btn-link[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

#confdAccordion .collapse {
    transition: all 0.3s ease-in-out;
}

#confdAccordion pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

#confdAccordion pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#confdAccordion pre::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

#confdAccordion pre::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

#confdAccordion pre::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

.nginx-config-block pre::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.confd-config pre::-webkit-scrollbar-track {
    background: #4a5568;
    border-radius: 3px;
}

.nginx-config-block pre::-webkit-scrollbar-thumb,
.confd-config pre::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.nginx-config-block pre::-webkit-scrollbar-thumb:hover,
.confd-config pre::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.info-item-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.info-label-grid {
    font-weight: 700;
    color: #5a5c69;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.info-value-grid {
    color: #3a3b45;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8f9fc;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.info-value-grid.host-extended {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Resource/Protocol Metrics */
.resource-metric,
.protocol-metric {
    background: rgba(0,0,0,0.05);
    border-radius: 0.25rem;
    padding: 0.75rem;
}

.resource-label,
.protocol-label {
    font-weight: 600;
    color: #5a5c69;
    font-size: 0.85rem;
}

.resource-value,
.protocol-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #36b9cc;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Container/Server Display */
.container-image-display,
.server-name-display {
    background: #f8f9fc !important;
    color: #3a3b45 !important;
    padding: 0.75rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.85rem !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    display: inline-block !important;
    word-break: break-all !important;
}

/* SSL Indicator */
.ssl-indicator {
    margin-bottom: 1rem;
}

.ssl-indicator .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Tab styling matching k8s - exact copy */
.deployment-tab-primary {
    border-left: 4px solid #4e73df !important;
    background: rgba(255,255,255,0.05) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
}

.deployment-tab-info {
    border-left: 4px solid #36b9cc !important;
    background: rgba(255,255,255,0.05) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
}

.deployment-tab-success {
    border-left: 4px solid #1cc88a !important;
    background: rgba(255,255,255,0.05) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
}

.deployment-tab-dark {
    border-left: 4px solid #5a5c69 !important;
    background: rgba(255,255,255,0.05) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
}

.deployment-tab-primary:hover {
    background: rgba(78, 115, 223, 0.1) !important;
    border-left: 4px solid #4e73df !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.deployment-tab-info:hover {
    background: rgba(54, 185, 204, 0.1) !important;
    border-left: 4px solid #36b9cc !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.deployment-tab-success:hover {
    background: rgba(28, 200, 138, 0.1) !important;
    border-left: 4px solid #1cc88a !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.deployment-tab-dark:hover {
    background: rgba(90, 92, 105, 0.1) !important;
    border-left: 4px solid #5a5c69 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.deployment-tab-primary.active {
    background: rgba(78, 115, 223, 0.15) !important;
    border-left: 6px solid #4e73df !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.2) !important;
}

.deployment-tab-info.active {
    background: rgba(54, 185, 204, 0.15) !important;
    border-left: 6px solid #36b9cc !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(54, 185, 204, 0.2) !important;
}

.deployment-tab-success.active {
    background: rgba(28, 200, 138, 0.15) !important;
    border-left: 6px solid #1cc88a !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(28, 200, 138, 0.2) !important;
}

.deployment-tab-dark.active {
    background: rgba(90, 92, 105, 0.15) !important;
    border-left: 6px solid #5a5c69 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(90, 92, 105, 0.2) !important;
}

.deployment-tab-primary i { color: #4e73df !important; }
.deployment-tab-info i { color: #36b9cc !important; }
.deployment-tab-success i { color: #1cc88a !important; }
.deployment-tab-dark i { color: #5a5c69 !important; }

.deployment-tab-primary.active i,
.deployment-tab-info.active i,
.deployment-tab-success.active i,
.deployment-tab-dark.active i {
    color: white !important;
}

/* Raw data container */
.raw-data-container {
    overflow-y: auto;
    background: #2d3748;
}

.raw-json-display {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    padding: 1rem !important;
    margin: 0 !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    white-space: pre !important;
}

@media (max-width: 768px) {
    .info-value-grid,
    .container-image-display,
    .server-name-display {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }

    .resource-metric,
    .protocol-metric {
        padding: 0.5rem;
    }
}
 
.tab-content .tab-pane {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease-in-out;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: hidden;
}

.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-content .tab-pane.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;
}

.tab-content .tab-pane.show.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;
}
 
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content .tab-pane.show.active {
    animation: fadeInUp 0.4s ease-out;
}
 
.nginx-header #domainTabs .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nginx-header #domainTabs .nav-link:hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nginx-header #domainTabs .nav-link.active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
 
.location-card {
    min-height: 240px !important;
}

.location-card .card-body {
    border-radius: 0 0 0.35rem 0.35rem !important;
}

.location-card .card-body pre {
    height: 120px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-start !important;
}
 
.card[data-toggle="modal"] {
    transition: all 0.3s ease-in-out !important;
}

.card[data-toggle="modal"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
 
.tab-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.tab-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4e73df;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
 
@media (max-width: 768px) {
    .tab-content {
        min-height: 300px;
    }
    
    .tab-content .tab-pane {
        transform: translateY(10px);
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 576px) {
    .location-card {
        min-height: 200px !important;
    }
    
    .location-card .card-body pre {
        height: 100px !important;
        font-size: 0.7rem !important;
    }
}

.sans-badge-primary {
    font-size: 0.7rem;
    color: #495057;
    background-color: #f8f9fc;
    padding: 0.15rem 0.4rem;
    margin: 0.1rem;
    border-radius: 0.25rem;
    border: 1px solid #e3e6f0;
    display: inline-block;
}

.sans-badge-more {
    font-size: 0.65rem;
    color: #155724;
    background-color: #d4edda;
    padding: 0.15rem 0.4rem;
    margin: 0.1rem;
    border-radius: 0.25rem;
    border: 1px solid #c3e6cb;
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
}

.sans-badge-more:hover {
    background-color: #c3e6cb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 87, 36, 0.15);
}

.expiration-badge-expired {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.expiration-badge-critical {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.expiration-badge-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #fff3cd;
    color: #ffc107;
    border: 1px solid #ffeaa7;
}

.expiration-badge-valid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #d4edda;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.expiration-badge-expired i,
.expiration-badge-critical i,
.expiration-badge-warning i,
.expiration-badge-valid i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

.expiration-badge-expired small,
.expiration-badge-critical small,
.expiration-badge-warning small,
.expiration-badge-valid small {
    font-size: 0.65rem;
    opacity: 0.8;
    color: inherit;
}

.issuer-badge-letsencrypt {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.issuer-badge-digicert {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #99d3ff;
}

.issuer-badge-comodo {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.issuer-badge-other {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #f8f9fc;
    color: #5a5c69;
    border: 1px solid #e3e6f0;
}

.issuer-badge-letsencrypt i,
.issuer-badge-digicert i,
.issuer-badge-comodo i,
.issuer-badge-other i {
    margin-right: 0.25rem;
}

#certificatesTable th {
    cursor: default !important;
}

#certificatesTable th:nth-child(4) {
    cursor: pointer !important;
}

#certificatesTable th:nth-child(4):hover {
    background-color: #f8f9fc !important;
}

#certificatesTable th.sorting_asc,
#certificatesTable th.sorting_desc,
#certificatesTable th.sorting {
    background-image: none !important;
}

#certificatesTable th:nth-child(4).sorting:after {
    content: "\f0dc" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    opacity: 0.5 !important;
    float: right !important;
}

#certificatesTable th:nth-child(4).sorting_asc:after {
    content: "\f0de" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    float: right !important;
}

#certificatesTable th:nth-child(4).sorting_desc:after {
    content: "\f0dd" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    float: right !important;
}

@media (max-width: 1200px) {
    .sans-badge-primary,
    .sans-badge-more {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
    
    .expiration-badge-expired,
    .expiration-badge-critical,
    .expiration-badge-warning,
    .expiration-badge-valid {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .issuer-badge-letsencrypt,
    .issuer-badge-digicert,
    .issuer-badge-comodo,
    .issuer-badge-other {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .sans-badge-primary,
    .sans-badge-more {
        font-size: 0.6rem;
        padding: 0.08rem 0.25rem;
        margin: 0.05rem;
    }
    
    .expiration-badge-expired,
    .expiration-badge-critical,
    .expiration-badge-warning,
    .expiration-badge-valid {
        padding: 0.3rem;
        font-size: 0.65rem;
    }
    
    .expiration-badge-expired i,
    .expiration-badge-critical i,
    .expiration-badge-warning i,
    .expiration-badge-valid i {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
}

/* ===============================
   CERTIFICATE TEST MODAL STYLES  
   =============================== */

#crtTestModal .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    margin: 1rem auto !important;
}

#crtTestModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
}

#crtTestModal .modal-header .close {
    color: white !important;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.5rem;
}

#crtTestModal .modal-header .close:hover {
    opacity: 1;
    color: white !important;
}

#crtTestModal .modal-body {
    padding: 2rem !important;
    min-height: 400px;
}

.certificate-results .table {
    font-size: 0.9rem !important;
    margin-bottom: 0;
}

.certificate-results .table th {
    background-color: #4e73df !important;
    color: white !important;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 1rem 0.75rem;
    white-space: nowrap;
    text-align: center;
}

.certificate-results .table td:first-child {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    word-break: break-all !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;  
}

.certificate-results .table th:first-child {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    text-align: center !important;  
}

.certificate-results .table td:first-child code {
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.8rem !important;
    text-align: center !important;  
    margin: 0 auto !important;  
}

.certificate-results .table td {
    padding: 1rem 0.75rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e3e6f0;
}

.certificate-results .table tbody tr {
    transition: all 0.2s ease;
}

.certificate-results .table tbody tr:hover {
    background-color: #f8f9fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.certificate-results code {
    background: #f8f9fc !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    border: 1px solid #e3e6f0 !important;
    font-size: 0.85rem !important;
    color: #5a5c69 !important;
    word-break: break-all;
}

.certificate-results .badge {
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
}

@media (max-width: 768px) {
    #crtTestModal .modal-dialog {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 0.5rem auto !important;
    }
    
    #crtTestModal .modal-body {
        padding: 1rem !important;
    }
    
    .certificate-results .table {
        font-size: 0.8rem !important;
    }
    
    .certificate-results .table th,
    .certificate-results .table td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .certificate-results .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.4rem !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    #crtTestModal .modal-dialog {
        max-width: 90vw !important;
        width: 90vw !important;
    }
}

.certificate-results .table-success {
    background-color: rgba(212, 237, 218, 0.1) !important;
    border-left: 4px solid #28a745;
}

.certificate-results .table-warning {
    background-color: rgba(255, 243, 205, 0.1) !important;
    border-left: 4px solid #ffc107;
}

.certificate-results .table-danger {
    background-color: rgba(248, 215, 218, 0.1) !important;
    border-left: 4px solid #dc3545;
}

.certificate-results .fa-check-circle {
    color: #28a745 !important;
    filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.3));
    transition: transform 0.2s ease;
}

.certificate-results .fa-times-circle {
    color: #dc3545 !important;
    filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.3));
    transition: transform 0.2s ease;
}

.certificate-results .fa-check-circle:hover,
.certificate-results .fa-times-circle:hover {
    transform: scale(1.1);
}

#crtTestModal .spinner-border {
    border-width: 0.4rem;
}

.certificate-results .table-responsive {
    overflow-x: visible !important;
}

.certificate-results .table {
    table-layout: auto;
    width: 100%;
}

.certificate-results .alert {
    border-radius: 0.5rem;
    border: none;
}

#crtTestModal.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: translate(0, -50px);
}

#crtTestModal.modal.show .modal-dialog {
    transform: none;
}

/* ===============================
   CERTIFICATE DETAIL STYLES     
   =============================== */

.issuer-badge-loading {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: #f8f9fc;
    color: #5a5c69;
    border: 1px solid #e3e6f0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sans-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.sans-badge-normal,
.sans-badge-wildcard {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer; 
    word-break: break-all;
    max-width: 300px;
    line-height: 1.2;
    margin: 0.2rem;
    user-select: none;
}

.sans-badge-normal {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.sans-badge-normal:hover {
    background-color: #bbdefb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
    cursor: pointer;
}

.sans-badge-normal:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(21, 101, 192, 0.3);
}

.sans-badge-wildcard {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.sans-badge-wildcard:hover {
    background-color: #ffcc02;
    color: #bf360c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 108, 0, 0.2);
    cursor: pointer;
}

.sans-badge-wildcard:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(239, 108, 0, 0.3);
}

.sans-badge-normal i,
.sans-badge-wildcard i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.sans-badge-normal[title]:hover::after,
.sans-badge-wildcard[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.25rem;
}

.certificate-details-row {
    display: flex;
    align-items: stretch;
}

.certificate-card-height {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.certificate-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sans-scroll-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    min-height: 250px;
    max-height: 350px;
}

.sans-stats {
    flex-shrink: 0;
    margin-top: auto;
}

.sans-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.sans-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sans-scroll-container::-webkit-scrollbar-thumb {
    background: #1cc88a;
    border-radius: 3px;
}

.sans-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #17a673;
}

.certificate-detail .sans-badges-container {
    gap: 0.4rem;
    margin-bottom: 0;
    padding: 0;
}

@media (max-width: 992px) {
    .certificate-details-row {
        display: block;
    }
    
    .certificate-card-height {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .sans-scroll-container {
        min-height: 200px;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .certificate-card-height {
        min-height: auto;
    }
    
    .sans-scroll-container {
        min-height: 180px;
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .sans-scroll-container {
        min-height: 150px;
        max-height: 200px;
    }
    
    .certificate-card-body {
        padding: 0.75rem;
    }
}

.sans-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.sans-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e3e6f0;
    transition: all 0.2s ease;
    position: relative;
}

.sans-list-item:first-child {
    border-top: 1px solid #e3e6f0;
    border-radius: 0.375rem 0.375rem 0 0;
}

.sans-list-item:last-child {
    border-bottom: 1px solid #e3e6f0;
    border-radius: 0 0 0.375rem 0.375rem;
}

.sans-list-item:hover {
    background-color: #f8f9fc;
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #667eea;
}

.sans-list-content {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: #495057;
    display: flex;
    align-items: center;
}

.sans-list-content i {
    width: 16px;
    flex-shrink: 0;
}

.sans-list-content span {
    font-weight: 500;
}

.sans-copy-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sans-list-item:hover .sans-copy-btn {
    opacity: 1;
    transform: scale(1.1);
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.sans-copy-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sans-list-item:nth-child(even) {
    background-color: #f8f9fc;
}

.sans-list-item:nth-child(even):hover {
    background-color: #eaecf4;
}

.sans-list-item .text-warning {
    color: #f6c23e !important;
    font-weight: 600;
}

.sans-list-item .text-primary {
    color: #4e73df !important;
}

.sans-copy-btn.copy-success {
    background-color: #1cc88a !important;
    color: white !important;
    border-color: #1cc88a !important;
    transform: scale(1.1) !important;
}

@media (max-width: 768px) {
    .sans-list-item {
        padding: 0.5rem 0.75rem;
    }
    
    .sans-list-content {
        font-size: 0.8rem;
    }
    
    .sans-copy-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .sans-list-item {
        padding: 0.4rem 0.6rem;
    }
    
    .sans-list-content {
        font-size: 0.75rem;
    }
    
    .sans-copy-btn {
        width: 24px;
        height: 24px;
    }
    
    .sans-list-content i {
        width: 14px;
        font-size: 0.7rem;
    }
}

.certificate-detail .nginx-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 4rem !important;
    padding: 1rem 1.25rem !important;
}

.certificate-detail .nginx-header h6 {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

.certificate-detail .nginx-header i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 0.5rem !important;
}

@media (max-width: 768px) {
    .certificate-detail .nginx-header {
        min-height: 3.5rem !important;
        padding: 0.875rem 1rem !important;
    }
    
    .certificate-detail .nginx-header h6 {
        font-size: 0.95rem !important;
    }
    
    .certificate-detail .nginx-header i {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .certificate-detail .nginx-header {
        min-height: 3rem !important;
        padding: 0.75rem 0.875rem !important;
    }
    
    .certificate-detail .nginx-header h6 {
        font-size: 0.9rem !important;
    }
    
    .certificate-detail .nginx-header i {
        font-size: 0.85rem !important;
    }
}


.sans-detail-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e3e6f0;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: #f8f9fc;
}

.sans-detail-container::-webkit-scrollbar {
    width: 6px;
}

.sans-detail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sans-detail-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.sans-detail-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.sans-detail-container .badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    word-break: break-all;
    white-space: normal;
    line-height: 1.2;
}

.sans-detail-container .badge i {
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.sans-detail-container .badge span {
    word-break: break-all;
    overflow-wrap: break-word;
}

#crtTestModal .modal-dialog {
    max-width: 95vw;
    width: 95vw;
}

#crtTestModal .table th:nth-child(4) {
    min-width: 300px;
}

@media (max-width: 768px) {
    #crtTestModal .modal-dialog {
        max-width: 98vw;
        width: 98vw;
        margin: 0.5rem;
    }
    
    .sans-detail-container {
        max-height: 150px;
        padding: 0.25rem;
    }
    
    .sans-detail-container .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        margin: 0.05rem;
    }
    
    #crtTestModal .table {
        font-size: 0.8rem;
    }
    
    #crtTestModal .table th:nth-child(4) {
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    .sans-detail-container {
        max-height: 120px;
    }
    
    .sans-detail-container .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    #crtTestModal .table th:nth-child(4) {
        min-width: 200px;
    }
}


.domain-detail .nginx-header {
    padding: 0 !important;
    min-height: 4rem !important;
}

.domain-detail .nginx-header #domainTabs {
    width: 100% !important;
    height: 100% !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 4rem !important;
}

.domain-detail #domainTabs .nav-item {
    flex: 1 !important;
    margin: 0 !important;
}

.domain-detail #domainTabs .nav-link {
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    min-height: 4rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    padding: 1rem 1.5rem !important;
}
.domain-detail .deployment-tab-primary {
    border-left: 4px solid #4e73df !important;
    background: rgba(255,255,255,0.1) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.domain-detail .deployment-tab-info {
    border-left: 4px solid #36b9cc !important;
    background: rgba(255,255,255,0.1) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.domain-detail .deployment-tab-success {
    border-left: 4px solid #1cc88a !important;
    background: rgba(255,255,255,0.1) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.domain-detail .deployment-tab-dark {
    border-left: 4px solid #5a5c69 !important;
    background: rgba(255,255,255,0.1) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.domain-detail .deployment-tab-primary:hover {
    background: rgba(78, 115, 223, 0.2) !important;
    border-left: 6px solid #4e73df !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.domain-detail .deployment-tab-info:hover {
    background: rgba(54, 185, 204, 0.2) !important;
    border-left: 6px solid #36b9cc !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.domain-detail .deployment-tab-success:hover {
    background: rgba(28, 200, 138, 0.2) !important;
    border-left: 6px solid #1cc88a !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.domain-detail .deployment-tab-dark:hover {
    background: rgba(90, 92, 105, 0.2) !important;
    border-left: 6px solid #5a5c69 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.domain-detail .deployment-tab-primary.active {
    background: rgba(78, 115, 223, 0.3) !important;
    border-left: 8px solid #4e73df !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3) !important;
    font-weight: 700 !important;
}

.domain-detail .deployment-tab-info.active {
    background: rgba(54, 185, 204, 0.3) !important;
    border-left: 8px solid #36b9cc !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(54, 185, 204, 0.3) !important;
    font-weight: 700 !important;
}

.domain-detail .deployment-tab-success.active {
    background: rgba(28, 200, 138, 0.3) !important;
    border-left: 8px solid #1cc88a !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(28, 200, 138, 0.3) !important;
    font-weight: 700 !important;
}

.domain-detail .deployment-tab-dark.active {
    background: rgba(90, 92, 105, 0.3) !important;
    border-left: 8px solid #5a5c69 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(90, 92, 105, 0.3) !important;
    font-weight: 700 !important;
}

.domain-detail .deployment-tab-primary i,
.domain-detail .deployment-tab-info i,
.domain-detail .deployment-tab-success i,
.domain-detail .deployment-tab-dark i {
    color: inherit !important;
    margin-right: 0.75rem !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
}

.domain-detail .deployment-tab-primary.active i,
.domain-detail .deployment-tab-info.active i,
.domain-detail .deployment-tab-success.active i,
.domain-detail .deployment-tab-dark.active i {
    color: white !important;
    transform: scale(1.1) !important;
}

.domain-detail .tab-content {
    background: white;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 0;
}

.domain-detail .tab-pane {
    padding: 1.5rem;
}

@media (max-width: 992px) {
    .domain-detail #domainTabs .nav-link {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.95rem !important;
        min-height: 3rem !important;
    }
    
    .domain-detail .deployment-tab-primary i,
    .domain-detail .deployment-tab-info i,
    .domain-detail .deployment-tab-success i,
    .domain-detail .deployment-tab-dark i {
        margin-right: 0.5rem !important;
        font-size: 1rem !important;
    }
    
    .domain-detail .nginx-header #domainTabs {
        min-height: 3rem !important;
    }
}

@media (max-width: 768px) {
    .domain-detail #domainTabs .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 2.5rem !important;
    }
    
    .domain-detail .deployment-tab-primary i,
    .domain-detail .deployment-tab-info i,
    .domain-detail .deployment-tab-success i,
    .domain-detail .deployment-tab-dark i {
        margin-right: 0.4rem !important;
        font-size: 0.95rem !important;
    }
    
    .domain-detail .nginx-header #domainTabs {
        min-height: 2.5rem !important;
    }
    
    .domain-detail .nginx-header {
        min-height: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .domain-detail #domainTabs .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        min-height: 2.25rem !important;
    }
    
    .domain-detail .deployment-tab-primary i,
    .domain-detail .deployment-tab-info i,
    .domain-detail .deployment-tab-success i,
    .domain-detail .deployment-tab-dark i {
        margin-right: 0.3rem !important;
        font-size: 0.9rem !important;
    }
    
    .domain-detail .nginx-header #domainTabs {
        min-height: 2.25rem !important;
    }
    
    .domain-detail .nginx-header {
        min-height: 2.25rem !important;
    }
}

.domain-detail .nginx-header .btn {
    margin-left: auto;
}

.domain-detail .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.domain-detail .nav-link:hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.domain-detail .nav-link.active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.domain-detail .nav-tabs {
    border-bottom: none !important;
}

.domain-detail .nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.domain-detail .nav-tabs .nav-link {
    border: none !important;
    margin-right: 0 !important;
}

.domain-detail .nav-tabs .nav-link.active,
.domain-detail .nav-tabs .nav-item.show .nav-link {
    border: none !important;
    background-color: transparent !important;
}

/*imagen de tulio*/


.nginx-header-with-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative !important;
}

.nginx-header-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 100%;
    background: url('../img/tulio.png') right center / 70px auto no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    border-radius: 0 0.35rem 0 0;
}

.cronopio-header-with-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative !important;
}

.cronopio-header-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 100%;
    background: url('../img/tulio.png') right center / 70px auto no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    border-radius: 0 0.35rem 0 0;
}

.nginx-header-with-bg > *,
.cronopio-header-with-bg > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .nginx-header-with-bg::after,
    .cronopio-header-with-bg::after {
        width: 60px;
        background-size: 45px auto;
        opacity: 0.18;
    }
}

@media (max-width: 576px) {
    .nginx-header-with-bg::after,
    .cronopio-header-with-bg::after {
        width: 45px;
        background-size: 35px auto;
        opacity: 0.12;
    }
}