    :root {
        --primary: #4361ee;
        --secondary: #3f37c9;
        --success: #4cc9f0;
        --info: #4895ef;
        --warning: #f72585;
        --light: #f8f9fa;
        --dark: #212529;
    }
    
    body {
        background-color: #f5f7fb;
        color: #343a40;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .card {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border: none;
        transition: transform 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    .stats-card {
        cursor: pointer;
        transition: all 0.3s;
        border-left: 4px solid var(--primary);
    }
    
    .stats-card:hover {
        box-shadow: 0 6px 25px rgba(0,0,0,0.12);
        border-left: 4px solid var(--warning);
    }
    
    .stats-card.active {
        background-color: #e9ecef;
        border-left: 4px solid var(--warning);
    }
    
    .progress-container {
        height: 26px;
        margin: 25px 0;
        border-radius: 12px;
        background: #e9ecef;
        overflow: hidden;
    }
    
    .progress {
        height: 100%;
        border-radius: 12px;
        transition: width 0.5s ease;
    }
    
    #global-progress {
      height: 100%;
      line-height: 26px;
      transition: width 0.5s ease;
    }
    
    .table-responsive {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .table-hover tbody tr {
        transition: all 0.2s;
    }
    
    .table-hover tbody tr:hover {
        background-color: rgba(67, 97, 238, 0.05) !important;
    }
    
    
    
    .highlighted {
        background-color: #fff3cd !important;
        animation: highlightPulse 2s ease;
    }
    
    @keyframes highlightPulse {
        0% { background-color: #ffff00; }
        100% { background-color: #fff3cd; }
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
        border-radius: 20px;
        font-weight: 500;
    }
    
    .bg-pending { background-color: #6c757d; color: white; }
    .bg-processing { background-color: #0dcaf0; color: white; }
    .bg-completed { background-color: #198754; color: white; }
    .bg-failed { background-color: #dc3545; color: white; }
    .bg-unregistered { background-color: #ffc107; color: black; }
    
    .btn-primary {
        background-color: var(--primary);
        border-color: var(--primary);
    }
    
    .btn-primary:hover {
        background-color: var(--secondary);
        border-color: var(--secondary);
    }
    
    .btn-danger {
        background-color: var(--warning);
        border-color: var(--warning);
    }
    
    .btn-group-controls .btn {
        border-radius: 8px;
    }
    
    .filter-tag {
        display: inline-block;
        background: #e9ecef;
        padding: 3px 10px;
        border-radius: 20px;
        margin: 2px 5px;
        font-size: 0.85rem;
    }
    
    .filter-tag i {
        cursor: pointer;
        margin-left: 5px;
    }
    
    .action-buttons .btn {
        min-width: 120px;
    }
    
    .domain-cell {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .server-cell {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .accordion-button:not(.collapsed) {
        background-color: rgba(67, 97, 238, 0.1);
        color: var(--primary);
        font-weight: 500;
    }
    
    .active-filters {
        min-height: 40px;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 8px 15px;
        margin-bottom: 15px;
    }
    
    .no-results {
        text-align: center;
        padding: 40px;
        color: #6c757d;
    }
    
    .no-results i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #dee2e6;
    }
    
    /*MODAL DESTACAR MULTIPLE */
    
    .container {
            max-width: 1000px;
            margin: 40px auto;
        }
        
        .header-card {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }
        
        .card {
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border: none;
            transition: transform 0.3s ease;
            margin-bottom: 25px;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card-title {
            color: var(--primary);
            font-weight: 600;
        }
        
        .btn-custom {
            background-color: var(--primary);
            border-color: var(--primary);
            border-radius: 8px;
            padding: 8px 20px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .btn-custom:hover {
            background-color: var(--secondary);
            border-color: var(--secondary);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
        }
        
        .btn-outline-custom {
            color: var(--primary);
            border-color: var(--primary);
            border-radius: 8px;
            padding: 8px 20px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .btn-outline-custom:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* Estilos del modal corregidos */
        .modal-content {
            border-radius: 12px;
            overflow: hidden;
            border: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        
        .modal-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-bottom: none;
            padding: 15px 20px;
        }
        
        .modal-title {
            font-weight: 600;
        }
        
        .btn-close {
            filter: invert(1);
            opacity: 0.8;
        }
        
        .btn-close:hover {
            opacity: 1;
        }
        
        .modal-body {
            padding: 25px;
        }
        
        .modal-footer {
            border-top: 1px solid #e9ecef;
            padding: 15px 25px;
        }
        
        .highlight-rule {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border-left: 3px solid var(--info);
        }
        
        .rule-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .rule-title {
            font-weight: 600;
            color: var(--dark);
        }
        
        .remove-rule {
            color: var(--warning);
            cursor: pointer;
            font-size: 1.1rem;
        }
        
        .status-badge {
            font-size: 0.8rem;
            padding: 5px 10px;
            border-radius: 20px;
            font-weight: 500;
        }
        
        .bg-completed { background-color: #198754; color: white; }
        .bg-processing { background-color: #0dcaf0; color: white; }
        
        .explanation-box {
            background-color: #e8f4ff;
            border-left: 4px solid var(--info);
            padding: 15px;
            border-radius: 0 8px 8px 0;
            margin: 20px 0;
        }
        
        .feature-list {
            list-style: none;
            padding: 0;
        }
        
        .feature-list li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
        }
        
        .feature-list li:last-child {
            border-bottom: none;
        }
        
        .feature-list li i {
            color: var(--primary);
            margin-right: 10px;
        }

    /*PROCESANDO*/
    
    .processing {
        opacity: 0.5;
        pointer-events: none;
    }
    
    .action-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(255,255,255,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    

/* Estilos para filas expandibles */
.account-row {
    cursor: pointer;
    background-color: #f8f9fa;
}

.account-row:hover {
    background-color: #e9ecef !important;
}

.account-details {
    background-color: #f8f9fa;
}

.details-container {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

/* Estilos para la tabla de dominios dentro de la cuenta */
.account-details table {
    width: 100%;
    background-color: #fff;
}

.account-details table th {
    background-color: #e9ecef;
    font-size: 0.85rem;
}

.account-details table td {
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* 脥cono de expansi贸n */
.toggle-details {
    transition: transform 0.3s ease;
}

.fa-chevron-down {
    transform: rotate(90deg);
}

/* Botones de acci贸n */
.resync-account, .resync-domain {
    transition: all 0.2s ease;
}

.resync-account:hover, .resync-domain:hover {
    transform: rotate(360deg);
}

/* Cache-indicator */
.domains-body[data-loaded="1"] .spinner-border {
    display: none;
}

.btn.btn-outline-custom.btn-lg.action-btn{
    display:none;
}

/*FILTROS modal*/
.server-input-group {
    align-items: center;
}

.server-input-group .form-select {
    max-width: 120px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.server-input-group .btn {
    border-radius: 0 0.25rem 0.25rem 0;
}

#added-servers .filter-tag {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 2px;
}

/* Estilos para pestaña ocultados */
#hidden-filter {
    max-width: 200px;
}

/* Mejoras visuales para filtros DNS */
.add-server-btn {
    border-radius: 0 0.375rem 0.375rem 0 !important;
}

.server-condition {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

#added-servers {
    max-height: 100px;
    overflow-y: auto;
}

/*Barra vertical tabla dominios*/
.details-container {
    overflow-x: auto;
    max-width: 100%;
}

.details-container table {
    min-width: 900px; /* ajusta según tus columnas */
}

td {
  white-space: normal;
  word-break: break-word;
}
